int NewMenuBar (int destinationPanelHandle);
Creates a new menu bar to reside on a specific panel and returns a handle to the new menu bar.
Use the new menu bar handle in subsequent function calls to specify the menu bar.
If the destination panel is not currently in memory, pass a zero as the destinationPanelHandle. You can later assign the menu bar to a panel using SetPanelMenuBar.
Input | ||
Name | Type | Description |
destinationPanelHandle | integer | Handle of the panel on which to place the menu bar. You obtain destinationPanelHandle from LoadPanel, NewPanel, or DuplicatePanel. If the destination panel is not currently in memory, or if the menu bar is used only as a popup menu, pass a zero as the destination panel handle. You can later assign the menu bar to a panel using SetPanelMenuBar. |
Name | Type | Description | ||||
menuBarHandle | integer | The handle you can use in subsequent function calls to specify this menu bar. Negative values indicate that an error occurred. Zero is not a valid handle.
|