Table of Contents

Class StatusBar

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

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 status bar.

public class StatusBar : View, IDisposable, ISupportInitializeNotification, ISupportInitialize
Inheritance
StatusBar
Implements
Inherited Members

Constructors

StatusBar()

Initializes a new instance of the StatusBar class.

StatusBar(StatusItem[])

Initializes a new instance of the StatusBar class with the specified set of StatusItem s. The StatusBar will be drawn on the lowest line of the terminal or SuperView (if not null).

Properties

Items

The items that compose the StatusBar

ShortcutDelimiter

Gets or sets shortcut delimiter separator. The default is "-".

Methods

AddItemAt(int, StatusItem)

Inserts a StatusItem in the specified index of Items.

OnDrawContent(Rectangle)

Draws the view's content, including Subviews.

OnInvokingKeyBindings(Key)

Low-level API called when a user presses a key; invokes any key bindings set on the view. This is called during NewKeyDownEvent(Key) after OnKeyDown(Key) has returned.

OnMouseEvent(MouseEvent)

Called when a mouse event occurs within the view's Viewport.

RemoveItem(int)

Removes a StatusItem at specified index of Items.