backscripts vs. libraries in 8 with .livecodescript
Aside from the libraryStack/releaseStack messages, is there any difference between using a .livecodescript file as a backscript vs a library? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
playloudness of audioclip ignored on Windows?
I have a ‘click' audio clip that typically is played once only in any one use of the software, as a sort of 'captured data’ indicator in response to an on screen button. That meant that the slight delay in first playing an audio clip was always noticeable for users. To get around this, I used this script to play silently once on opencard, and then the ‘real’ click would not be laggy. On opencard set the playloudness of audioclip “click.aiff” to zero play audioclip “click.aiff” set the playloudness of audioclip “click.aiff” to 50 –– not sure this setting is retained, but hey ho. end opencard This works fine in the ide and in Mac standadalone. No click, and no lag when the click is needed for real. On Windows (10 and Vista tested so far) standalone the click is not muted, but plays at the OS volume setting. I have looked through the docs and forums, but can’t see anything relevant. Any ideas? Developing on Mac OS 10.12, LC 7.1.3 Best wishes, David Glasgow ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[OT] Kid's Play
When you need to have a break from LiveCode how about popping over here: https://www.facebook.com/RichmondsCoding Of course, if that fills you will joy: then go back and do it all in LiveCode :) Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Help needed with scaleFactor and scaling
This seems to work (to make button 1 appear to be 100 pixels from the top and left, and to appear to be 200 wide and 150 tall): on fixit put random(10)/10 + 1 into it set the scalefactor of this stack to it set the rect of btn 1 to 100/it,100/it,100/it+100/it,100/it+50/it end fixit ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Help needed with scaleFactor and scaling
Can anyone figure out the math to resize a control so it appears to be unchanged when you set the scaleFactor of a stack? For example… you have a button who’s rect is 100,100,400,400. On the screen, it looks to be 300px wide. Now, if you set the scaleFactor to 1.5, what rect do you have to set the button to get it to “appear” to remain 300px wide? At first, I thought it would simply be each item of the rect/scaleFactor. But, that doesn’t do it. I feels like you have to get the DPI of the active display and somehow use that as part of the equation. Any ideas? Thanks in advance, -Dan ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode