Page 1 of 1
Modal Pick-Wheel support
Posted: Fri Dec 10, 2010 5:38 pm
by bendangelo
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
Re: Modal Pick-Wheel support
Posted: Fri Dec 10, 2010 9:01 pm
by bn
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
Re: Modal Pick-Wheel support
Posted: Sun Dec 12, 2010 8:45 am
by bendangelo
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
Re: Modal Pick-Wheel support
Posted: Wed Dec 22, 2010 10:53 am
by bn
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
Re: Modal Pick-Wheel support
Posted: Wed Dec 22, 2010 2:32 pm
by bendangelo
Hi bernd
thanks
where can I get this last version ??
Regards
Re: Modal Pick-Wheel support
Posted: Wed Dec 22, 2010 8:47 pm
by bn
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