Skip to content

XTPCommandBarStyle Enumeration

Description

Specifies command bar styles.

Members

Member Description
XTP_CBRS_GRIPPER This flag is used to indicate if a command bar will display the "gripper" on the far left of the command bar that lets the user know that the command bar can be "gripped" and moved. This can be used to add/remove the gripper. It will not stop the user from gripping the command bar and moving it; you will need to set the appropriate EnableDocking Method flags to prevent the user from docking the command bar.

Example

This sample illustrates how to remove the gripper from a command bar and how to prevent the user from docking the command bar.

' Removes the gripper from the ActiveMenuBar  
CommandBars.ActiveMenuBar.ModifyStyle XTP_CBRS_GRIPPER, 0  

' Prevents the user from docking the ActiveMenuBar; the user will not be able to click  
' and drag the ActiveMenuBar  
CommandBars.ActiveMenuBar.EnableDocking xtpFlagStretched ' Prevent docking  

' Replaces the gripper on the ActiveMenuBar  
CommandBars.ActiveMenuBar.ModifyStyle 0, XTP_CBRS_GRIPPER  

See Also


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