Active Background Color (BackColorSelect)

Background color of a tab, menu item, or panel button when it has been selected.

"BackColorSelect=ColorName | HexColorNumber"

Value

Description

ColorName

Name of a web color or system color. For more information, see Standard Colors .

HexColorNumber

Hexadecimal number (prefixed by a hash mark) of a color. For example: #D90E1A.

RGBColor

RGB (Red Green Blue) numeric values in the form R,G,B. For example 255,0,0

Usage

Dynamic?

Yes for widgets

No for menus and panels

Supported in Grid?

No

Dependencies:

For TabEx, Tab Colors must be defined.

TabEx

For tabs, the Active Background Color is only applicable if the Tab Colors property has a color value. If you have defined a single color for the tabs, you can define a color to show the active tab. However, if all the tab have different colors, the active tab color is more difficult to distinguish.

Menus and Panels

For menus and panels, the BackColorSelect property can only be set in the .ini file. For example:

;usys.ini
[application]
menu=umenu(backcolor=blue;backcolorselect=yellow)
panel=upanel(backcolor=blue;backcolorselect=green)

Setting in ProcScript

The following code example builds a list of tab color properties (vProperties) and assigns them to the TAB field:

vProperties = "" ; string variable
putitem/id vProperties,"tabcolors","lightgoldenrod1"
putitem/id vProperties,"backcolorselect","gold"
$fieldproperties(TAB) = vProperties
Active Tab Color

Colored tabs with the active tab a different color

Related Topics