On 8/17/05 9:49 AM, "David Burgun" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I have a pop up menu that has two values, call them A and B. In the
> preOpenStack handler I want to set the menu back to A so I tried the
> following:
> 
> send "menuPick A" to button "myButton"

Actually, what you want to do is to set the "menuHistory" to a number
corresponding to the menu item you want selected. So if the menu displays
"A" as the first item, then "B", you want to do:

  set the menuHistory of button "myButton" to 1

However keep in mind that this does the same thing as actually *selecting*
the menu item, so if you want to reset the menu, but *not* have it take
effect, you need to wrap the command in "lock messages", like this:

  lock messages
  set the menuHistory of button "myButton" to 1
  unlock messages

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to