iPhonePick, checkmark

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
conde
Posts: 51
Joined: Sun Nov 27, 2011 10:41 am

iPhonePick, checkmark

Post by conde » Sun Feb 12, 2012 12:23 am

Can anybody help me. 5 items in the list of my iPhonePick (wheel). By selecting e.g. item 3, card 3 is shown. What can i do that in the pickwheel in card 3 the item of card 3 is hilited or checked (checkmarked)?

Guera

hliljegren
Posts: 111
Joined: Sun Aug 23, 2009 7:48 am
Contact:

Re: iPhonePick, checkmark

Post by hliljegren » Sun Feb 12, 2012 9:30 am

The second parameter to iPhonePick should set the selected item.

Code: Select all

iPhonePick yourList, the number of this card
should do the trick i hope
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3

conde
Posts: 51
Joined: Sun Nov 27, 2011 10:41 am

Re: iPhonePick, checkmark

Post by conde » Sun Feb 12, 2012 12:13 pm

Thanks hliljegren,

great - works fine on the iPhone but not on the iPad.

... Guera

hliljegren
Posts: 111
Joined: Sun Aug 23, 2009 7:48 am
Contact:

Re: iPhonePick, checkmark

Post by hliljegren » Mon Feb 13, 2012 7:23 am

Hmm strange! Works perfectly for me. Do you have your iPad cards in the same stack as the iPhone. I.e. they have higher current card number? If that is the case I suggest you name your cards like "iPhone 1, iPhone 2, ... iPad 1, iPad 2" or something like that then you can instead of the number of this card use:

Code: Select all

iPhonePick yourList, word -1 of the short name of this card
-1 = the last word

If it is the names of the cards you are displaying and don't wan't them to have names as above you can use a custom property, a hidden field, an local / global variable or some other method to remember "your" card number.
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3

conde
Posts: 51
Joined: Sun Nov 27, 2011 10:41 am

Re: iPhonePick, checkmark

Post by conde » Mon Feb 13, 2012 10:36 am

Thanks a lot hliljegren!

Post Reply