Programming Reference:StatusBar Class

From BCI2000 Wiki
Jump to: navigation, search

Location

src/shared/modules/application/gui

Synopsis

A StatusBar is a GraphObject that consists of two stacked text fields, separated with a separator bar.

The top field is termed GoalText, and the bottom field is termed ResultText. For an empty GoalText, ResultText occupies the top as well, and the separator bar is not displayed.

Methods

StatusBar(GraphDisplay)

To the constructor, provide the target GraphDisplay.

Properties

string GoalText (rw)

The text displayed in the status bar's top GoalText field.

string ResultText (rw)

The text displayed in the status bar's bottom ResultText field.

float TextHeight (rw)

Text height, given in units of a single line's height. Typical text height values are between 0.6 and 0.8.

RGBColor TextColor (rw)

The text's color.

RGBColor Color (rw)

The status bar's background color.

See also

Programming Reference:GraphObject Class, Programming Reference:GraphDisplay Class, Programming Reference:TextField Class