Spinner with multiple selections -- possible?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Spinner with multiple selections -- possible?

Post by genie » Thu Jul 12, 2012 7:07 am

Pardon my noob question...
but, Is it possible to have a spinner that can accomodate more than 1 answers?

We use "iphonePick" whenever I need a picker-wheel, right? But, I guess it only allows user to pick 1 from the list.

Actually, I cannot seem to imagine/picture-out this kind of picker :lol: , but that's what my client is asking me to do. I'm new to LC, so I'm wondering it it's even possible. If not, can anybody suggest an alternative?


Thanks,
Genie

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Spinner with multiple selections -- possible?

Post by Dixie » Thu Jul 12, 2012 9:22 am

Genie...

Yes it is possible... read page 42 of the iOS release notes regarding the syntax for iphonePick.
A pick-wheel with multiple columns can be created by specifying more than one optionList
initalIndex pair. For multi-column pick-wheels, the result will be a comma separated list of the
chosen items, on item for each column.
be well

Dixie

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: Spinner with multiple selections -- possible?

Post by genie » Thu Jul 12, 2012 9:43 am

Hello Dixie!

Thanks for the response... :) Sorry if my question was not very clear, I am referrring to a picker wheel that functions like a checkbox (instead of Radiobutton). So, I need one column only, but I am wondering if its possible to provide many answers to that one column.

Best Regards,
genie

dave_probertGA6e24
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 328
Joined: Mon Dec 05, 2011 5:34 pm
Contact:

Re: Spinner with multiple selections -- possible?

Post by dave_probertGA6e24 » Thu Jul 12, 2012 10:43 am

Hi,
The actual iPhone (iOS) Pick Wheel does not do multi-selections natively (As Far As I Know) - so it cannot really be used for what you want. But you could use a 'Field' (probably 'Scrolling List' Field) with 'listBehavior' and 'multipleHilite' selected - that should achieve what you require. But you would need to play with the styling of it a bit to fit in with your app looks.

Hope that helps,
Dave
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: Spinner with multiple selections -- possible?

Post by genie » Fri Jul 13, 2012 4:24 am

Thank you, Dave! I guess I should now forget about the picker wheel...and try what you suggested. :)

david.silmanBUSrUeQ
Posts: 44
Joined: Thu Jul 19, 2012 1:49 pm

Re: Spinner with multiple selections -- possible?

Post by david.silmanBUSrUeQ » Thu Aug 23, 2012 3:18 pm

Just a diff thought, but couldn't you just store the chosen value into an array or something, then allow the user to select another if they want, shouldn't be to hard I'd image.
(Not done any iOS stuff yet so I could be wrong)

David

Post Reply