Skip to content

Modern Tui TuiStatusBar Add

Paul Squires edited this page Oct 19, 2026 · 6 revisions

Home › Terminal TUI Library › Overlays and Chrome › TuiStatusBar.Add

TuiStatusBar.Add

Adds an item at the left or right; include any padding spaces in the text.

Syntax

TuiStatusBar.Add( byref t as ustring, byval st as TuiStyle, byval a as TuiAlign = TUIALIGN_LEFT )

Description

Appends an item. Include the padding spaces in the text -- the bar does not add any, so you decide exactly how it looks.

Example

#import "std/tui"
using tui

dim as TuiStatusBar sb
sb.Add( " ready ", TuiStyleDefault( ), TUIALIGN_LEFT )
sb.Add( "100% ", TuiStyleDefault( ), TUIALIGN_RIGHT )
print sb.items.Count( )           '' 2
print sb.items[1].align = TUIALIGN_RIGHT '' -1 (true)

See also

TuiPopup TuiMessageBox.Cancelled TuiMenuBar.IsOpen TuiStatusBar
TuiMessageBox TuiMenu TuiStatusItem TuiTreeNode
TuiMessageBox.Accepted TuiMenuBar TuiStatusItemOf TuiTreeState

Library: Terminal TUI Library
Category: Terminal TUI Library
Documented under: Overlays and Chrome
Working examples: hello.tiko · form.tiko · dashboard.tiko


Home · Keyword Index

Clone this wiki locally