Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visibility of Sub Menu after completing the task
Message
From
15/07/1999 15:00:30
 
 
To
15/07/1999 14:48:50
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00241920
Message ID:
00241932
Views:
13
>Hi! All FoxPro Developers
>
> Here is a little option which my user is requesting in menu system!
>
>I have created a menu Bar and the pad have sub menus, When i select a pad from menu the sub-menu activated and some sub-menus again have sub-menus i.e. three levels in menu. when i select a option from lowest sub-menu bar that after executing the form attached with the bar the selected pad and sub-menus are deactivated. I want to stay on the same level until i press the Escape of select an other menu!
>e.g.
>I have a "File Maintenance" pad
> Contract File Maint.
> RRC Cotract Maint.
> Inventory Item Conttract maint.
> Spares Contract Maint.
> Manufacturin Contract Mang.
>Now I want that if i selected the Contract file maintenance bar and i want to enter data in all type of contract, then after entering the data in one option the same sub-menu is visible.
>
>
>I am going to update an existing Foxpro Dos base system which have this option nad my user is insisting for the option pl. help in this regard.
>
>Thanks to all!

It's unclear which version of FoxPro you want to do this for, but you'll need to have ALL your menu selections go through some common piece of code, like a form launcher. In this form launcher code you'll need to save some PUBLIC variables like mmPopUp and mmBar (main menu popup and main menu bar):

mmPopUp = POPUP()
mmBar = BAR()
Do your form here

Now after you return from your form, you'll need to reset the menu to where you came from:

ACTIVATE POPUP (mmPopUp) BAR mmBar

This should restore your menu to where you left it.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform