OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Displaying Mode Indicators

For a particular mode indicator to appear on the status bar, you must have specified the mode when the status bar was constructed.

But once the mode indicator is on the status bar, it is up to you to make any changes in the indicator. TStatusBar provides the following functions to modify the mode indicators.

  • TStatusBar::SetModeIndicator changes the status of a mode indicator to any valid arbitrary state.
    void SetModeIndicator(TModeIndicator indicator, bool state);
    • indicator is the mode indicator you want to set. This can be any value from the enum TModeIndicator used in the constructor.
    • state is the state to which you want to set the mode indicator.
  • TStatusBar::ToggleModeIndicator toggles a mode indicator with the function:
    void ToggleModeIndicator(TModeIndicator indicator);
    • indicator is the mode indicator you want to toggle. This can be any value from the enum TModeIndicator used in the constructor.

See Also