Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Splitting Menu into 2's. How to release the 2nd one ?

Status
Not open for further replies.

PankX

Programmer
May 10, 2002
29
0
0
ID
i got a message program too large. it came from the menu. so i split the menu into 2's.

menu1 = menuA,menuB,NextMenu

for the nextmenu i set the procedures to do menu2.mpr

menu2 = PrevMenu,menuC,menuD

my question is, how to rele menu2 and back to menu1 if i press the PrevMenu ? (which command i must use for it ?)

if i use rele menu _msysmenu extended, i can't back to menu1

Thank's
Pram

 
If i use the menu builder, i think all of the menu name is _msysmenu ??? (am i right ??)

So how to close the _sysmenu of menu2 ?
Thank's
Pram
 
When you use the menu builder, you still have to save the menu you're building under a different file name. So PUSH the _msysmenu, run your new menu (DO MENU1) and when you're done POP it. Think of a handful of marbles (menus) and a pipe with one end closed off. You 'push' a marble into the pipe (_msysmenu), then another (menu1), and so on (DO menu2). When you retrieve the marbles, you must take out the last one inserted (pop menu1), then the one prior (pop _msysmenu), and so on until you are back to the first one.

You can also do this:
Code:
PUSH MENU _msysmenu    &&...save the system menu off
DO menu1.mpr           &&... currently showing menu
PUSH MENU menu1        &&... save that one off
DO menu2.mpr
*...  'previous menu'  &&.. retrieve menu1
POP MENU menu1
*...  'previous menu'  &&.. retrieve _msysmenu
POP MENU _msysmenu


-Dave S.-
[cheers]
Even more Fox stuff at:
 
Hi Dave,

when i call the proc :
POP MENU MENU1

there is an error : menu not define ??
Please tell me step by step when creating the menu1 and menu2

Thank's
Pram
 
Guys, I still can't solve my problem. Do u have any idea ?

Thank's
Pram
 
Pram,
not clear your difficulties...
If you have one Bigmenu, to split it
"File", "Save as..." Menu1,
"File", "Save as..." Menu2,
and in both Menu1 and Menu2 delete redundant items...
Tesar
 
Hi Tesar,

I've been do your idea, but if i run menu1 then menu2 then menu1 then menu2, etc, there is an error : nesting too deep.

any suggestion ?
Thank's
Pram

 
Pram,
both PUSH and POP menu, as suggest DSummZZZ,
prevent nesting...
Tesar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top