Skip to main content

TdxStatusBarKeyStateAppearance Class

Controls the appearance of the keyboard indicators on the status bar.

Declaration

TdxStatusBarKeyStateAppearance = class(
    TPersistent
)

Remarks

This class controls the display of the keyboard indicator that tracks the state of a keyboard modifier key (e.g. CAPS LOCK, NUM LOCK) on the status bar. It specifies the text labels that are displayed on the status bar when the key is locked and released, defines the individual colors for these states and controls other options.

In real life, each key indicator object controls an instance of the TdxStatusBarKeyStateAppearance class. It enables you to customize the appearance of each indicator individually. It means that you may setup different labels, fonts and colors for the CAPS LOCK, NUM LOCK, SCROLL LOCK, and Insert/Overwrite indicators.

At design time, you may access the options provided by a TdxStatusBarKeyStateAppearance object using the Object Inspector. If you wish, for example, to change the appearance of the CAPS LOCK indicator, follow the instruction below:

  • Select the status bar object.

  • Switch to the Object Inspector and click the ellipsis button next to the Panels property.

  • In the Panels collection editor, select the relevant container panel.

  • In the Object Inspector, find and expand the PanelStyle property.

  • Customize the appearance options.

Inheritance

TObject
TPersistent
TdxStatusBarKeyStateAppearance
See Also