Issues with Mobile Native controls

Brian Milby brian at milby7.com
Tue Apr 21 18:40:18 EDT 2020


I’m pretty sure the answer is no.  It does not work on the included widgets.

Thanks,
Brian
On Apr 21, 2020, 6:38 PM -0400, Ralph DiMola via use-livecode <use-livecode at lists.runrev.com>, wrote:
> Does "lock messages" help here? I don’t know if it works for widgets? If so you could do this:
>
> Lock messages
> set the highlight of me to not the highlight of me
> unlock messages
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
>
>
> -----Original Message-----
> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Graham Samuel via use-livecode
> Sent: Tuesday, April 21, 2020 3:24 PM
> To: How to use LiveCode
> Cc: Graham Samuel
> Subject: Re: Issues with Mobile Native controls
>
> Yes, it was the “native” one.
>
> I caused the error which I saw by creating an infinite loop. I did not realise that the ‘hiliteChanged’ message is sent after the graphic representation of the switch has been changed within the widget itself, so I scripted:
> on hiliteChanged
>
> set the highlight of me to not the highlight of me
>
> end hiliteChanged
>
> By doing that I generated another hiliteChanged message, and so an infinitum. It was slightly less obvious than it might have been because the test started on a card with a button scripted"
>
> go cd “testCard”
>
> which was supposed to show the card with the switch on it. This doesn’t happen in this case - the screen freezes before the ‘go’ is actioned, so it looks like we never left the first card.
>
> It was Elanor at LiveCode who explained that to me. I am somewhat embarrassed, but it may help someone else to know what I did wrong.
>
> Graham
>
> PS This widget has a property ‘highlight’ and a message ‘hiliteChanged’. I think the spelling should be consistent.
>
> > On 21 Apr 2020, at 19:04, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
> >
> > I think you're right, the "native" switch is the one you bought. I've had no issues with the one that comes with LC.
> >
> > --
> > Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software
> > | http://www.hyperactivesw.com On April 21, 2020 4:19:45 AM Graham
> > Samuel via use-livecode <use-livecode at lists.runrev.com> wrote:
> >
> > > I’ve got ‘Switch Button’ and a ‘Native Switch Button’ in the LC toolbox. Not sure which one you are talking about.
> > >
> > > The second one came with the widget set I bought, I think. Anyway it has caused me a lot of trouble with the iOS simulator, but that may be because the environment I’m working in is rather out of date apart from LC itself (I’m using 9.5.1). LC Support are looking at it for me, but I already guess that they will say “it works here”, since they will be running the latest version of XCode etc. which is not permitted with my setup.
> > >
> > > Graham
> > >
> > > > On 21 Apr 2020, at 02:37, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
> > > >
> > > > The one I mean is actually a widget but we're probably talking about the same thing. I like it because you can set the theme and it displays correctly for either iOS or Android.
> > > >
> > > > I'd love to see more themed widgets like that, maybe a mobileButton widget for example.
> > > >
> > > > --
> > > > Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive
> > > > Software | http://www.hyperactivesw.com On April 20, 2020 6:24:48 PM
> > > > Rick Harrison via use-livecode <use-livecode at lists.runrev.com> wrote:
> > > >
> > > > > Are you referring to the switch button?
> > > > > If so, yes it is in Indy.
> > > > >
> > > > > Rick
> > > > >
> > > > > > On Apr 20, 2020, at 5:48 PM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
> > > > > >
> > > > > > I've used LC's built-in switch widget without any problems. I don't know if that's included in Indy though.
> > > > >
> > > > > _______________________________________________
> > > > > 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
> > >
> > >
> > > _______________________________________________
> > > 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
>
> _______________________________________________
> 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