Alternatively, take the clock widget and replace the OnPaint handler with public handler OnPaint() variable tTime as List variable tComponent as Integer repeat with tComponent from 1 up to 3 push mCurrentTime[tComponent] formatted as string onto tTime end repeat variable tTimeString as String combine tTime with ":" into tTimeString
fill text tTimeString at center of my bounds on this canvas end handler for a digital clock widget. If you're feeling adventurous, make the OnPaint handler draw an LCD-style digital display à la Hermann ;-) On Fri, Jun 30, 2017 at 4:25 PM panagiotis merakos via use-livecode < [email protected]> wrote: > Neat and simple. That's why we love LiveCode :) > > Panos > -- > > On Fri, Jun 30, 2017 at 3:47 PM, hh via use-livecode < > [email protected]> wrote: > > > To have it in sync with the system clock: > > > > send "updateClock" to me in (1000 - the millisecs mod 1000) millisecs > > > > _______________________________________________ > > use-livecode mailing list > > [email protected] > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
