Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to disable menu or menu items at runtime as paramete
Message
From
25/10/2005 06:29:04
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
01061779
Message ID:
01061791
Views:
19
i wantto disable some menus (full) or some submenus as a parameter. Which is saved in a params.dbf file . Why? some clients doesnt using some modules of my app for example invoice module. So that i wantto close/disable or hide these menus for usage for this client.

Create a function in your procedure file that reads the params dbf and locates the corect record that gives informaiton about whether ot not the particular menu pad should be disabled. Have this function return .F. if the pad should be disabled. Then put something like this in the skip for condition of your menu pad:
NOT MenuIsEnabaled( [Invoices] )
Alternatively, you could download GenmenuX at http://www.meistermacneill.com/genmenux.htm. This will allow you to toally remove menu pads that you do not want avaiable.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform