Activating the Option Menu with a MobGUI Button

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
timvos
Posts: 10
Joined: Tue Dec 13, 2011 6:49 am

Activating the Option Menu with a MobGUI Button

Post by timvos » Tue Nov 06, 2012 2:08 am

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.

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: Activating the Option Menu with a MobGUI Button

Post by gpb01 » Tue Nov 06, 2012 5:56 am

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Activating the Option Menu with a MobGUI Button

Post by jacque » Tue Nov 06, 2012 7:07 pm

Or third: write your own using the mobilePick command. It's a single line of code.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

timvos
Posts: 10
Joined: Tue Dec 13, 2011 6:49 am

Re: Activating the Option Menu with a MobGUI Button

Post by timvos » Wed Nov 07, 2012 5:34 am

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.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Activating the Option Menu with a MobGUI Button

Post by jacque » Wed Nov 07, 2012 6:31 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply