Page 1 of 1
popup button from menu
Posted: Sun Jul 22, 2007 1:37 am
by Garrett
Seems when I popup a menu from my main menubar, it's turned into a button and no longer a menu.
I assume that I'd need to reset it somehow to return to it's menu form after the popup, but was not able to find the proper reference in the docs.
Anyone able to point me in the right direction in the docs to get this reset back into a menu?
Thanks in advance,
-Garrett
Posted: Sun Jul 22, 2007 10:28 am
by Klaus
Hi Garret,
???
"menus" in Rev ARE in fact buttons, so this is correct behaviour.
Or do I miss something?
Regards
Klaus
Posted: Sun Jul 22, 2007 10:54 am
by Mark
Garrett,
No, you don't need to reset it. Something else must be wrong. Do you have a script that changes the style of the button? Have you created the menu yourself, or have you used the menu builder? How exactly have you created this menu?
Best,
Mark
Posted: Sun Jul 22, 2007 11:11 pm
by Garrett
I used the Menu Builder... And here's the code I'm using:
Posted: Mon Jul 23, 2007 12:10 am
by Mark
Hi Garret,
The popup command makes an object or stack appear at a particular location. Please read more about the popup command in the docs.
You should use the menupick message to deal with selected menu items. You will quickly see how it works if you let the menu builder create the a script template for you. First click on the button called Auto Script and subsequently click on Edit Script.
Best regards,
Mark
Posted: Mon Jul 23, 2007 4:45 am
by Garrett
Apologies, I should've noted that it turns into a popup instead, and the pulldown style is removed when I used the above code.
I merely want to right click in an edit field and have the edit menu popup at that location without changing the main menu's edit menu into a popup style as it is happening now.
Really sorry, but sometimes what I want to say and what I do, don't always come across right. An issue that I suffer from frequently.
Many thanks for the replies,
-Garrett
Posted: Mon Jul 23, 2007 4:55 am
by Garrett
Well, seems I found a resolution to my problem.
Code: Select all
popup button "Edit"
set the menuMode of button "Edit" to pulldown
That puts it back to what it's suppose to be
Again, thanks for all the replies

-Garrett