Re: Is there Digital Clock Component out there?
@ Ali. > Ali wrote: >> hh wrote: >> In Oct 2016 I made a digital widget clock, published in >> the forum > LC Builder > Community widgets: >> http://forums.livecode.com/viewtopic.php?p=146968#p146968 >> [And there: "Doesn't work in the HTML5 standalone builder."] > It should now work in HTML5 too :-D Yes, this is a great new feature. The problem is that nearly all my widgets were built in LC 8.1.1. The HTML5 standalone builder of 9.0.0-dp7 supports now (except of the browser widget) also widgets. But the handlers where script access (to my script object) is allowed changed in LC Builder. So I had first to rewrite the widgets to have them run in 9.0.0-dp7. As such changes may occur again with each new dp-version, I'll better wait until the first 9.0.0 stable version. Hope you have more luck with your widgets. @Glen. > hh wrote: > Simply use the lcb file to recompile it with the LC version > you wish to use. Currently the binary lce files from LC 8 are > not usable in LC 9 and vice versa. I have to correct this: Recompiling is not enough because also LC Builder has changed its behavior for important handlers (especially for OnPaint). But you may find some snippets in the lcb file that perhaps could make your life easier when creating your own digital clock widget. ___ 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: Is there Digital Clock Component out there?
I will try to take a look and hopefully squeeze something in to my next LiveCode Global session! On Fri, Jun 30, 2017 at 5:12 PM Lagi Pittas via use-livecode < use-livecode@lists.runrev.com> wrote: > HI Ali > > Thanks for popping in with a vary practical and edifying lesson in the > power of the widget program/display mechanics. > Basically OO MVC for widgets with - in this case at least - very low > coupling. > > Maybe you or somebody on the list with greater Livecode powers than me > (not difficult) could create or even jumpstart an Android FFI widget > around the print to printer functions in the latest Android. > > Specifically some type of widget that we could call to connect to a printer > on a local network. Writing to specific printers via bluetooth or without a > wifi network would probably be lot of work. > > It would save so much aggravation and be a great addition to the widget > course and of much more practical use to me and I dare say others than the > battery checker example - which I would wager is probably more difficult > - > > If I have a need for a widget I ultimately put the time in to understand > it better because I will modify it - or add something to it - but the > battery checker i've just glossed over the code. > > The way I've got round my problem at the moment is Windows Tablets but it > pains me running Windows 10 on an 8 Inch tablet just to make it easy to > print. - although they work remarkably well. > > I'm sure there are others who would like an easy way to connect to a local > networked printer. > > Thanks in advance > > > Kindest Regards Lagi > > On 30 June 2017 at 16:47, Ali Lloyd via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > 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@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@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@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 > > > > > ___ > > 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 ___ 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: Is there Digital Clock Component out there?
It should now work in HTML5 too :-D On Fri, Jun 30, 2017 at 9:31 PM hh via use-livecode < use-livecode@lists.runrev.com> wrote: > In Oct 2016 I made a digital widget clock, published in > the forum > LC Builder > Community widgets: > http://forums.livecode.com/viewtopic.php?p=146968#p146968 > > Simply use the lcb file to recompile it with the LC version > you wish to use. Currently the binary lce files from LC 8 are > not usable in LC 9 and vice versa. > > ___ > 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
Re: Is there Digital Clock Component out there?
In Oct 2016 I made a digital widget clock, published in the forum > LC Builder > Community widgets: http://forums.livecode.com/viewtopic.php?p=146968#p146968 Simply use the lcb file to recompile it with the LC version you wish to use. Currently the binary lce files from LC 8 are not usable in LC 9 and vice versa. ___ 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: Is there Digital Clock Component out there?
HI Ali Thanks for popping in with a vary practical and edifying lesson in the power of the widget program/display mechanics. Basically OO MVC for widgets with - in this case at least - very low coupling. Maybe you or somebody on the list with greater Livecode powers than me (not difficult) could create or even jumpstart an Android FFI widget around the print to printer functions in the latest Android. Specifically some type of widget that we could call to connect to a printer on a local network. Writing to specific printers via bluetooth or without a wifi network would probably be lot of work. It would save so much aggravation and be a great addition to the widget course and of much more practical use to me and I dare say others than the battery checker example - which I would wager is probably more difficult - If I have a need for a widget I ultimately put the time in to understand it better because I will modify it - or add something to it - but the battery checker i've just glossed over the code. The way I've got round my problem at the moment is Windows Tablets but it pains me running Windows 10 on an 8 Inch tablet just to make it easy to print. - although they work remarkably well. I'm sure there are others who would like an easy way to connect to a local networked printer. Thanks in advance Kindest Regards Lagi On 30 June 2017 at 16:47, Ali Lloyd via use-livecode < use-livecode@lists.runrev.com> wrote: > 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@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@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@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 > > > ___ > 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
Re: Is there Digital Clock Component out there?
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@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@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@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 > ___ 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: Is there Digital Clock Component out there?
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@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@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
Re: Is there Digital Clock Component out there?
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Is there Digital Clock Component out there?
I was maybe over thinking it since I was looking at a series of repeat loops and implementing mouseclicks for stopping and starting. Your solution is perfect since it is great for a time card solution and with a little mod I can make it into a stop watch solution. Thanks Mike. On Fri, Jun 30, 2017 at 9:59 AM, Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > well, > > on openCard >updateClock > end openCard > > > > on updateClock >if the tool is "browse tool" then put the long time into field "clock" >send "updateClock" to me in 1 second > end updateClock > > On Fri, Jun 30, 2017 at 9:53 AM, Glen Bojsza via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > Time crunch...no pun intended! > > > > On Fri, Jun 30, 2017 at 9:39 AM, Mike Kerner via use-livecode < > > use-livecode@lists.runrev.com> wrote: > > > > > Why not just use a field and write one? > > > ___ > > > 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 > > > > > > -- > 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 > ___ 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: Is there Digital Clock Component out there?
well, on openCard updateClock end openCard on updateClock if the tool is "browse tool" then put the long time into field "clock" send "updateClock" to me in 1 second end updateClock On Fri, Jun 30, 2017 at 9:53 AM, Glen Bojsza via use-livecode < use-livecode@lists.runrev.com> wrote: > Time crunch...no pun intended! > > On Fri, Jun 30, 2017 at 9:39 AM, Mike Kerner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > Why not just use a field and write one? > > ___ > > 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 > -- 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
Re: Is there Digital Clock Component out there?
Time crunch...no pun intended! On Fri, Jun 30, 2017 at 9:39 AM, Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > Why not just use a field and write one? > ___ > 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
Re: Is there Digital Clock Component out there?
That's what I did with the Timeclock app that I wrote (I'm replacing shop floor timeclocks with ipads). On Fri, Jun 30, 2017 at 9:39 AM, Mike Kerner wrote: > Why not just use a field and write one? > -- 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
Re: Is there Digital Clock Component out there?
Why not just use a field and write one? ___ 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
Is there Digital Clock Component out there?
Hello, I have found several Analog Clocks but with the component architecture I thought this would be readily available ... maybe I am missing something. regards, Glen ___ 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