Hover Background Color ( BackColorHover)

Color of a tab or panel button when the mouse hovers over it.

" BackColorHover=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

Supported in Grid?

No

Dependencies:

Tab Colors must have a value.

Description

To provide more visual feedback about the mouse cursor location, you can define a color for the tab or button when the mouse cursor rest on it.

TabEx Widget

For the TabEx widget, it is only applicable if the Tab Colors property has a color value. This is most useful if you have defined a single color for all the tabs using Tab Colors, rather than a list of different colors.

Using in ProcScript

You can use $properties or $fieldproperties to set or get the property and its value. For more information, see $properties and $fieldproperties.

$fieldproperties(FLD) = "="

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

vProperties = "" ; string variable to contain the list of widget properties 
vProperties = "" ; string variable
putitem/id vProperties,"tabcolors","lightsteelblue1"
putitem/id vProperties,"backcolorselect","lightgoldenrod"
putitem/id vProperties,"backcolorhover","lightyellow1"
$fieldproperties(TAB) = vProperties

The resulting widget shows the General tab is active, but the mouse cursor is over the Presentation tab, so its color is light yellow:

Active and Hover Tab Colors

Colored tab strip showing different colors for the active tab and the hovered
    tab

Panels

For panels, this property can only be set in the usys.ini file. For example:

;usys.ini
[application]
Panel = upanel(backcolorhover=lightyellow1)

[upi]
ButtonStyle=9

Related Topics