SetFlags Method
Description
Sets the flags of the command bar. This allows you to add or remove the MDI buttons that are displayed in the command bar.
Syntax
Public Sub SetFlags( _
ByVal Add As XTPMenuBarFlags, _
ByVal Remove As XTPMenuBarFlags _
)
Parameters
Add
| Flag | Description |
|---|---|
xtpFlagHideMinimizeBox |
Specifies to hide the minimize box displayed on the Command Bar. |
xtpFlagHideMaximizeBox |
Specifies to hide the maximize box displayed on the Command Bar. |
xtpFlagHideClose |
Specifies to hide the close button displayed on the Command Bar. |
xtpFlagHideMDIButtons |
Specifies to hide all MDI buttons displayed on the Command Bar. |
xtpFlagAddMDISysPopup |
Specifies to add a system MDI popup menu to the Menu Bar. This will appear as an icon to the far left of the Menu Bar and will display the MDI menu bar options when clicked. |
Remove
| Flag | Description |
|---|---|
xtpFlagHideMinimizeBox |
Specifies to hide the minimize box displayed on the Command Bar. |
xtpFlagHideMaximizeBox |
Specifies to hide the maximize box displayed on the Command Bar. |
xtpFlagHideClose |
Specifies to hide the close button displayed on the Command Bar. |
xtpFlagHideMDIButtons |
Specifies to hide all MDI buttons displayed on the Command Bar. |
xtpFlagAddMDISysPopup |
Specifies to add a system MDI popup menu to the Menu Bar. This will appear as an icon to the far left of the Menu Bar and will display the MDI menu bar options when clicked. |
Example
This sample illustrates how to add or remove the MDI buttons displayed in the ActiveMenuBar.
' This sample code illustrates how to add a MDI popup control on the menu bar.
CommandBars(1).SetFlags xtpFlagAddMDISysPopup, 0
' This sample code illustrates how to hide all MDI buttons on the menu bar.
CommandBars(1).SetFlags xtpFlagHideMDIButtons, 0
' This sample code illustrates how to hide the maximize MDI button on the menu bar.
CommandBars(1).SetFlags xtpFlagHideMaximizeBox, 0
' This sample code illustrates how to hide the minimize MDI button on the menu bar.
CommandBars(1).SetFlags xtpFlagHideMinimizeBox, 0
' This sample code illustrates how to hide the close MDI button on the menu bar.
CommandBars(1).SetFlags xtpFlagHideClose, 0
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.