Page 1 of 1

Option Menus and "return"

Posted: Wed Feb 09, 2011 2:25 pm
by rdlankes@iis.syr.edu
I am using the option menu to create a pickwheel list to select a subject (popup buttons don't work on the iPad as I found out and mentioned in the docs). When the user makes a selection, they have to click off the menu to make anything happen...in essence making a selection on the iPad through the option menu doesn't return the results until after they click anywhere else. Is there a way to have the user bring up the option menu, click on the item they want, and then automatically go to a page without having them click elsewhere?

I like the iPhone control iphonePick that at least has a "done" button, but the iPad doesn't.

Here's the code:

Code: Select all

local pItemName
on menuPick pItemName
   switch pItemName
   end switch
   set the label of me to "Threads"
   go cd pItemName of stack "Threads"
end menuPick

Re: Option Menus and "return"

Posted: Thu Feb 10, 2011 3:55 am
by RickD
Hi rdlankes:

This has been fixed in 4.6-DP5.

I tested your code and it works exactly as your request.

Cheers

Re: Option Menus and "return"

Posted: Thu Feb 10, 2011 11:54 am
by Klaus
Hi rdlankes@iis.syr.edu,

if you do not differ between the menuitems, you can omit the "switch" part completely:

Code: Select all

local pItemName
on menuPick pItemName
   set the label of me to "Threads"
   go cd pItemName of stack "Threads"
end menuPick
Best

Klaus

Re: Option Menus and "return"

Posted: Thu Feb 10, 2011 5:30 pm
by rdlankes@iis.syr.edu
Sorry for the stupid question...how do I get 4.6-DP5?

Re: Option Menus and "return"

Posted: Thu Feb 10, 2011 6:02 pm
by Klaus
Hi (wo)man with the long nickname,

that is no stupid question at all!

You need to be part of the LiveCode Developer Programm to get hold of
Developer Previews and Betas of new LiveCode versions!

Read more about it here:
http://www.runrev.com/products/livecode ... r-program/


Best from germany

Klaus