Modal Pick-Wheel support
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 10
- Joined: Wed Nov 17, 2010 5:42 pm
Modal Pick-Wheel support
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
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
-
- VIP Livecode Opensource Backer
- Posts: 4002
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Modal Pick-Wheel support
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:
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
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
regards
Bernd
-
- Posts: 10
- Joined: Wed Nov 17, 2010 5:42 pm
Re: Modal Pick-Wheel support
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
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
-
- VIP Livecode Opensource Backer
- Posts: 4002
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Modal Pick-Wheel support
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
the pick-Wheel now returns the result. So it is much easier to do a pick-wheel.
(in latest versions)
Kind regards
Bernd
-
- Posts: 10
- Joined: Wed Nov 17, 2010 5:42 pm
Re: Modal Pick-Wheel support
Hi bernd
thanks
where can I get this last version ??
Regards
thanks
where can I get this last version ??
Regards
-
- VIP Livecode Opensource Backer
- Posts: 4002
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Modal Pick-Wheel support
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
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