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