Class StatusBar
A status bar is a View that snaps to the bottom of a Toplevel displaying set of StatusItems.
The StatusBar should be context sensitive. This means, if the main menu and an open text editor are visible, the items probably shown will
be ~F1~ Help ~F2~ Save ~F3~ Load. While a dialog to ask a file to load is executed, the remaining commands will probably be ~F1~ Help.
So for each context must be a new instance of a statusbar.
Implements
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class StatusBar : View, IEnumerable
Constructors
StatusBar(StatusItem[])
Initializes a new instance of the StatusBar class with the specified set of StatusItems.
The StatusBar will be drawn on the lowest line of the terminal or Parent (if not null).
Declaration
public StatusBar(StatusItem[] items)
Parameters
Type | Name | Description |
---|---|---|
StatusItem[] | items | A list of statusbar items. |
Properties
Items
The items that compose the StatusBar
Declaration
public StatusItem[] Items { get; set; }
Property Value
Type | Description |
---|---|
StatusItem[] |
Parent
The parent view of the StatusBar.
Declaration
public View Parent { get; set; }
Property Value
Type | Description |
---|---|
View |
Methods
ProcessHotKey(KeyEvent)
Declaration
public override bool ProcessHotKey(KeyEvent kb)
Parameters
Type | Name | Description |
---|---|---|
KeyEvent | kb |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Redraw(Rect)
Declaration
public override void Redraw(Rect region)
Parameters
Type | Name | Description |
---|---|---|
Rect | region |
Overrides
Implements
System.Collections.IEnumerable