Page 1 of 1

Activating the Option Menu with a MobGUI Button

Posted: Tue Nov 06, 2012 2:08 am
by timvos
On the iPhone the button that appears for an Option Menu does not look like a native iOS button. Therefore, I would like to use a MobGUI list button or option button that would activate the Option Menu. For example, "send mouseUp to button "menu"". Or "hilite button "menu"". But none of these seems to do the trick. How can I accomplish this? These nonstandard interface features have kept my app from receiving approval.

Re: Activating the Option Menu with a MobGUI Button

Posted: Tue Nov 06, 2012 5:56 am
by gpb01
Hi timvos,
maybe the correct area for this question is the MobGUI area, here : http://forums.runrev.com/viewforum.php?f=54, second ... if you do few search in MobGUI area, probably you will find the answer to your question, like this one : http://forums.runrev.com/viewtopic.php? ... lit=Option

Guglielmo

Re: Activating the Option Menu with a MobGUI Button

Posted: Tue Nov 06, 2012 7:07 pm
by jacque
Or third: write your own using the mobilePick command. It's a single line of code.

Re: Activating the Option Menu with a MobGUI Button

Posted: Wed Nov 07, 2012 5:34 am
by timvos
Perhaps I need to clarify that I am looking to have the user click on a MobGUI list or option button and have that click pass through to a LiveCode option menu button, so that the iOS picker is launched. I do not want to script the option to be selected, but rather just launch the picker, as if the user had clicked on the Option Menu button. The Option Menu button currently launches the picker, but the button lacks the look and feel of the iOS.

Re: Activating the Option Menu with a MobGUI Button

Posted: Wed Nov 07, 2012 6:31 pm
by jacque
I probably wasn't clear enough either. The mobilePick command displays the iOS option picker. When your user clicks on a button, you just call the mobilePick command with a list of options and it will display the iOS picker so that the user can choose one. You can pre-select an option if you want to, but it isn't required.

You don't really need (or want) to pass the message on to a LiveCode option button because those don't work in iOS. Instead, provide a regular button and use that to trigger the mobilePick command. I haven't tried mobGUI option buttons, but it seems to me that it should automatically call up the iOS picker. But if it doesn't, then it's very easy to script that single line, get the result, and use it for whatever you need.