View Full Version : Enable menu at runtime
jerilyn
09-27-2005, 04:01 PM
My project has three components, each of which is accessible through a menu option with corresponding submenu items. Most of our clients install all three options but there are some that have maybe only one or two of these options. I want to be able to check if certain files are installed on their system. If they are, enable the corresponding menu. If not, leave the menu disabled (as this will be the default) unless the preload test passes. Thank you.
Corey
09-27-2005, 04:10 PM
Hi, at this time the menu bar applies project-wide, not to individual pages. You can erase all the items from the menu bar in certain scenarios though. To do that simply use Application.SetMenu with an empty table. Here's an example of the Application.SetMenu action:
http://www.indigorose.com/webhelp/ams60/Program_Reference/Actions/Application.SetMenu_Examples.htm
:)
yosik
09-28-2005, 10:15 AM
I think what you mean is not preload (which refers to a page), but onStartup which refers to the project.
Then you can add an action which, based on whatever was checked, uses Application.Menu to state which menu (or submenu) will be enabled.
Yossi
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.