Select an item from mobile "Scroller"? - Solved

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Select an item from mobile "Scroller"? - Solved

Post by DR White » Fri Feb 10, 2017 2:27 am

I am working on an application where I would like the possible items from an auto-fill field to appear in a "scroller".
Is it possible to do this with LC?

Thanks,

David
Last edited by DR White on Fri Feb 10, 2017 3:09 pm, edited 1 time in total.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Is it possible to select an item from mobile "Scroller"?

Post by Klaus » Fri Feb 10, 2017 1:00 pm

Hi David,

you mean something like a "list" field?
Yes, sure this is possible! :D


Best

Klaus

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Is it possible to select an item from mobile "Scroller"?

Post by DR White » Fri Feb 10, 2017 1:18 pm

Yes, like a list field that behavior of a mobile scroller.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Is it possible to select an item from mobile "Scroller"?

Post by Klaus » Fri Feb 10, 2017 1:48 pm

Hi David,

OK, to get started, take a look at this lesson:
http://lessons.livecode.com/m/4069/l/94 ... ll-a-field


Best

Klaus

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Is it possible to select an item from mobile "Scroller"?

Post by DR White » Fri Feb 10, 2017 1:57 pm

Yes, I did that but I was not able to to put an item from scroller into another list

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Is it possible to select an item from mobile "Scroller"?

Post by Klaus » Fri Feb 10, 2017 1:59 pm

What did you script so far?

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Is it possible to select an item from mobile "Scroller"?

Post by DR White » Fri Feb 10, 2017 2:50 pm

see attachment
Attachments
TestScrollerPick.livecode.zip
(2.31 KiB) Downloaded 174 times

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Is it possible to select an item from mobile "Scroller"?

Post by Klaus » Fri Feb 10, 2017 2:56 pm

Hi David,

the "mouseup" handler needs to go into the list field script!


Best

Klaus

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Is it possible to select an item from mobile "Scroller"?

Post by DR White » Fri Feb 10, 2017 3:07 pm

Revised version with Klaus's suggestions work GREAT!!

Thank so Much,

David
Attachments
TestScrollerPick.livecode 2.zip
(2.32 KiB) Downloaded 170 times

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Select an item from mobile "Scroller"? - Solved

Post by Klaus » Fri Feb 10, 2017 3:10 pm

Okie Dokie, makes five bucks then!
(Just kidding) :D

Post Reply