Modifying the Bar Menu
- Last UpdatedJan 09, 2024
- 1 minute read
The APPBARMENU object provides similar functions for the bar menu of the main form. To create additional menus on the bar menu, proceed as follows:
Create an APPBARMENU object:
!bmenu = object APPBARMENU()
This automatically associates the object with the bar menu on the main form.
You can then change the contents of the bar menu using the following commands.
|
Command |
Description |
|---|---|
|
!bmenu.add(!dtext is STRING, !menuName is STRING) |
Adds a menu to the end of the bar menu, use the command. This adds the menu !menuName to the bar menu with label !dtext. The menu is automatically positioned before the Window and Help menus if they are present. |
|
!bmenu.insertBefore('<TargetMenuName>', '<Dtext>', '<MenuName>') !bmenu.insertAfter('<TargetMenuName>', '<Dtext>', '<MenuName>') |
To insert menus relative to existing menus, use |
|
!bmenu.remove(!menuName is STRING |
To remove the menu menuName from the bar, use |
|
!!appMenuCntrl.addBarMenu('APP', !bmenu) |
Register the APPBARMENU object with !!appMenuCntrl, specifying the applications in which the menu should be visible. |