Is there Digital Clock Component out there?
Ali Lloyd
ali.lloyd at livecode.com
Fri Jun 30 11:47:33 EDT 2017
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 <
use-livecode at lists.runrev.com> wrote:
> Neat and simple. That's why we love LiveCode :)
>
> Panos
> --
>
> On Fri, Jun 30, 2017 at 3:47 PM, hh via use-livecode <
> use-livecode at lists.runrev.com> 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
> > use-livecode at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list