Bernd: Nice widget. I thought it would be interesting to make an animated text line display effect using this. Maybe there are better ways. I tried to get it to turn automatically and just watch for the turnAngle, but I couldn’t get it to start turning, from my script unless I set the turnAngle explicitly.
Any suggestions? Bill But, I did: on mouseUp showTheText "This is Bills text" end mouseUp local curAngle local isTurning on showTheText tText set the turnAngle of widget "turnText" to 270 put 270 into curAngle set the displayText of widget "turnText" to tText --set the turnSpeed of widget "turnText" to 2 put TRUE into isTurning doTheTurn end showTheText on doTheTurn put the turnAngle of widget "turnText" into curAngle if curAngle > 360 then put false into isTurning else send "addTurn" to me in 0.02 seconds end if end doTheTurn on addTurn add 5 to curAngle set the turnAngle of widget "turnText" to curAngle if isTurning then doTheTurn end if end addTurn > On May 29, 2016, at 10:29 AM, BNig <bernd.niggem...@uni-wh.de> wrote: > > Thank you Richmond, > > just taking babysteps into widgets. > > Oh, and if you installed the widget and want to get rid of it use "Tools" -> > "Extension Manager" > > Kind regards > Bernd > > > > RM wrote >> Clever, clever stuff! >> >> Congratulations. >> >> Richmond. >> >> On 29.05.2016 13:15, BNig wrote: >>> in the spirit of letting thousand widgets bloom: here is a simple widget >>> that >>> turns text horizontally. >>> >>> the widget to install in "My Livecode" -> "extensions" >>> ---------------------------------- >>> http://berndniggemann.on-rev.com/turnwidget/turnText.zip >>> ---------------------------------- >>> >>> as widget within HTML5 see >>> ---------------------------------- >>> http://berndniggemann.on-rev.com/turn/turnkurt.html >>> ---------------------------------- >>> >>> tested with LC 8.0.0 to LC 8.1.0 DP1 >>> >>> see help file how to install widget and sample stack included in the zip. >>> >>> >>> Thanks to Trevor for showing an example of transform in his blog >>> ---------------------------------- >>> http://www.bluemangolearning.com/livecode/2015/04/creating-a-busy-indicator-in-livecode-builder/ >>> ---------------------------------- >>> >>> and thanks to Hermann for help with the math. > > > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/widget-that-turns-text-horizontal-tp4705280p4705285.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > 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 _______________________________________________ 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