Modal Pick-Wheel support

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bendangelo
Posts: 10
Joined: Wed Nov 17, 2010 5:42 pm

Modal Pick-Wheel support

Post by bendangelo » Fri Dec 10, 2010 5:38 pm

Hi all
I try using the command iphonePick optionList, initialIndex
using this script in a button
on mouseUp
put field maliste into optionlist
put 1 into initialindex
iphonePick optionList,initialindex
put the result into monresultat
answer monresultat
end mouseUp

No problem I got the pickweel with the good values from field and the initial index is correct
Problem "the result" give me back only the value of my initial index ( 1 in this case) and not what the user selected
Any idea ??
thanks for your help
PS : same thing using an option menu control

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4002
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Modal Pick-Wheel support

Post by bn » Fri Dec 10, 2010 9:01 pm

Hi bendangelo,

welcome to the forum.

Unfortunately I dont get the simple iphonePick to work either. The result does not work for me.

If however you use an option menu button then you can get at least the label of the option menu button that changed and the menuhistory of that option menu button.
However the menupick does not work.
Use this code and see how far you get
set the script of the option menu button to this:

Code: Select all

local sLabel

on mouseDown
   put field maliste into optionlist
   set the text of me to optionList
   set the menuHistory  of me to 3
   put line 3 of optionList into sLabel
end mouseDown

on mouseUp
   answer "New " & the label of  me && "o " &sLabel && the menuhistory of me
end mouseUp
to be shure that there are no erraneous characters in the copied script please convert the script to unformatted text. On a Mac you could do this by pasting the script into TextEdit and convert it to simple ASCII text.

regards
Bernd

bendangelo
Posts: 10
Joined: Wed Nov 17, 2010 5:42 pm

Re: Modal Pick-Wheel support

Post by bendangelo » Sun Dec 12, 2010 8:45 am

hi bernd
thanks for your help
Using a option menu button is a good way to solve the problem
I fact I use now "the label of me" in order to know what the user choose

Hope they 'll fix the problem with iphonePick command
Regards

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4002
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Modal Pick-Wheel support

Post by bn » Wed Dec 22, 2010 10:53 am

Hi Bendangelo,

the pick-Wheel now returns the result. So it is much easier to do a pick-wheel.
(in latest versions)

Kind regards

Bernd

bendangelo
Posts: 10
Joined: Wed Nov 17, 2010 5:42 pm

Re: Modal Pick-Wheel support

Post by bendangelo » Wed Dec 22, 2010 2:32 pm

Hi bernd
thanks
where can I get this last version ??
Regards

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4002
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Modal Pick-Wheel support

Post by bn » Wed Dec 22, 2010 8:47 pm

Hi bendangelo,

if you are in the developer program you have access to developer previews. If not it seems that the next release 4.5.3 not too far away.

Then it will work.

It started to work with 4.5.3 rc-2

kind regards

Bernd

Post Reply

Return to “iOS Deployment”