ToggleCommandBar()

Examples


The ToogleCommandBar() function defined in the syCmdBarObj form is used to change the display state of a toolbar and its corresponding menu item in Microsoft Dynamics GP.

Syntax

ToggleCommandBar(menu_item_tag, toolbar_tag)

Parameters

menu_item_tag – The integer tag value for the menu item in the Toolbars submenu that is used to control whether the toolbar is displayed. If the toolbar is being displayed, the menu item will be set to the checked state. Otherwise it will be set to the unchecked state.

toolbar_tag – The integer tag value for the command list used to define the the toolbar. If the toolbar is visible, it will be hidden. If it is hidden, it will be made visible.

Return value

An integer indicating whether the toolbar status was changed. The constant value OKAY indicates the toolbar status was changed.


Documentation Feedback