Skip to content

CommandBar Object Members

See Also

CommandBar Overview

See Also Command Bars ActiveX Control v24.0

CommandBar Object Members

Public Methods

Method Description
Public MethodDelete Deletes the command bar
Public MethodEnableDocking Enables docking of the command bar to different edges of the form or it can be "floating".
Public MethodFindControl Finds and returns the specified control within the command bar's collection of controls.
Public MethodGetIconHeight Gets the bounding rectangle of the command bar. This is the area of the window that the command bar occupies.
Public MethodGetIconWidth Modifies the style of the command bar. This allows you to add/remove the "gripper".
Public MethodGetWindowRect Call this method to re-calculate the layout of the command bar after making a layout change.
Public MethodModifyStyle Call this method to redraw the command bar after making a change that requires the command bar to be re-painted.
Public MethodRecalcLayout Resets the controls in the ToolBar to their original state.
Public MethodRedrawBar Sets the flags of the command bar. This allows you to add/remove the MDI buttons that are displayed in the command bar.
Public MethodReset Sets the size of the actual bitmapped images to be added to the toolbar.
Public MethodSetFlags Sets the specified toolbar to popup.
Public MethodSetIconSize Allows a command bar associated with a popup menu to be made into a floating command bar by tearing it away from the popup menu.
Public MethodSetPopupToolBar Displays the command bar as a popup menu at the specified screen coordinates.
Public MethodSetTearOffPopup
Public MethodShowPopup

Public Properties

Property Description
Public PropertyBarID Gets the ID of the command bar.
Public PropertyBuiltIn Gets whether the command bar is a built-in command bar or a command bar added by the user using the customize dialog.
Public PropertyCloseable Gets/Sets a Boolean value indicating whether the command bar is closeable. If false, the command bar cannot be closed or hidden.
Public PropertyCommandBars Reference to the parent CommandBars object.
Public PropertyContextMenuPresent Gets/Sets whether a command to hide/show the command bar is added to the context menu that is displayed when you right-click on any command bar. By default, all command bars are added to the context menu.
Public PropertyControls Gets the collection of controls on the command bar.
Public PropertyCustomizable Gets/Sets a Boolean value indicating whether the command bar is customizable. If false, this command bar cannot be customized.
Public PropertyCustomizeDialogPresent Gets/Sets whether the toolbar appears in the Customization Dialog.
Public PropertyDefaultButtonStyle Specifies the default style that will be applied to controls added to the toolbar.
Public PropertyDoubleGripper Specifies whether menu items that are "checked" will have both a check mark and an image next to them in the popup menu.
Public PropertyEnableAnimation Specifies whether to use animation effects with this command bar.
Public PropertyhWnd Returns the handle of the command bar.
Public PropertyParent Gets the popup control representing the parent of the command bar.
Public PropertyPosition Gets/Sets the position of the command bar.
Public PropertySelectedControl Gets the currently selected control from a command bar.
Public PropertyShowExpandButton Shows or hides the Expand Button for the Command Bar.
Public PropertyShowGripper Hides/Shows the toolbar gripper.
Public PropertyShowTextBelowIcons Shows the caption below the control's icon.
Public PropertyTextOrientation Gets or sets the text orientation inside the command bar.
Public PropertyTitle Gets/Sets the title of the command bar.
Public PropertyType Gets the type of the command bar.
Public PropertyVisible Gets/Sets a boolean value indicating whether the command bar is visible.
Public PropertyWidth Gets/Sets the width of the toolbar when it is floating, displayed as a popup, or a mini toolbar.

See Also

CommandBar Overview


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.