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 statusbar.

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 StatusItems. 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

Used for change the shortcut delimiter separator.

Methods

AddItemAt(int, StatusItem)

Inserts a StatusItem in the specified index of Items.

MouseEvent(MouseEvent)

Method invoked when a mouse event is generated

OnEnter(View)

Method invoked when a view gets focus.

ProcessHotKey(KeyEvent)

This method can be overwritten by view that want to provide accelerator functionality (Alt-key for example).

Redraw(Rect)

Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.

RemoveItem(int)

Removes a StatusItem at specified index of Items.