Changing Custom Menus and Toolbars at Runtime
Description
At runtime, the custom drop-down and right click menus or toolbars for any of the form modes ( View, Query by Form, and Find by Form ), or for a browse can be dynamically changed by setting the appropriate form or object property. For example, to change the drop down menu for a form called "Customers" to "menu2", you would execute the following Xbasic command:
:Customers.drop_down_menu = "menu2"
The table below lists the various properties that you can set to control the menus and toolbars for form and browse windows.
.DROP_DOWN_MENU
Main menu for the window when in View mode.
.FIND_BY_FORM_DROP_DOWN_MENU
Main menu for Find by Form mode.
.FIND_BY_FORM_RIGHT_CLICK_MENU
Right click menu in Find by Form mode.
.FIND_BY_FORM_TOOLBAR
Toolbar for Find by Form mode.
.QUERY_BY_FORM_DROP_DOWN_MENU
Main menu for Query by Form mode.
.QUERY_BY_FORM_RIGHT_CLICK_MENU
Right click menu for Query by Form mode
.QUERY_BY_FORM_TOOLBAR
Toolbar for Query by Form mode
.RIGHT_CLICK_MENU
Right click menu for the form or browse window.
.TOOLBAR
Toolbar for the form or browse window.
See Also