GetRectangleTextColor Method
Description
Returns the color of a button/rectangle given the selected, pressed, enabled, checked, popuped, bartype, and barposition.
Syntax
Public Function GetRectangleTextColor( _
ByVal Selected As Boolean, _
ByVal Pressed As Boolean, _
ByVal Enabled As Boolean, _
ByVal Checked As Boolean, _
ByVal Popuped As Boolean, _
ByVal barType As XTPBarType, _
ByVal barPosition As XTPBarPosition _
) As ULong
Parameters
- Selected: Set to True if the button/rectangle should be in a selected state.
- Pressed: Set to True if the button/rectangle should be in a pressed state.
- Enabled: Set to True if the button/rectangle should be in an enabled state.
- Checked: Set to True if the button/rectangle should be in a checked state.
- Popuped: Set to True if the button/rectangle should be in a "popuped" state. This is the state of a button when it is pressed and it is displaying a popup menu.
- barType: Type of parent bar.
Bar Types
| Value | Description |
|---|---|
| xtpBarTypeMenuBar | The command bar is a menu bar. |
| xtpBarTypeNormal | The command bar is a normal command bar. |
| xtpBarTypePopup | The command bar is a popup command bar. |
| xtpBarTypeRibbon | The command bar is a Ribbon bar. When using the Ribbon bar, ActiveMenubar will return a reference to the Ribbon bar. |
- barPosition: Parent's bar position.
Bar Positions
| Value | Description |
|---|---|
| xtpBarTop | The bar is docked to the top edge of the form. |
| xtpBarBottom | The bar is docked to the bottom edge of the form. |
| xtpBarLeft | The bar is docked to the left edge of the form. |
| xtpBarRight | The bar is docked to the right edge of the form. |
| xtpBarFloating | The bar is a floating command bar. |
| xtpBarPopup | Not Used for dialog bar. |
| xtpBarListBox | Not Used for dialog bar. |
| xtpBarComboBoxGalleryPopup | The command bar will be displayed as a gallery. |
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.