Skip to content

Modern Tui TuiFocusRing Add

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

Home › Terminal TUI Library › Widgets › TuiFocusRing.Add

TuiFocusRing.Add

Adds a widget to the end of the Tab order; the widget must outlive the frame.

Syntax

TuiFocusRing.Add( byval w as TuiWidget ptr )

Description

Appends a widget to the tab order. The ring stores the pointer and nothing else -- no ownership, no copy.

Example

#import "std/tui"
using tui

dim as TuiCheckbox a, b
dim as boolean va, vb
a.checked = @va : b.checked = @vb

dim as TuiFocusRing ring
ring.Add( @a )
ring.Add( @b )
print ring.Count( )               '' 2

See also

TuiWidget TuiWidget.HandleEvent TuiWidget.SetFocused TuiFocusRing.Count
TuiWidget.Render TuiWidget.SizeHint TuiFocusRing TuiFocusRing.Current
TuiWidget.Kind TuiWidget.CanFocus TuiFocusRing.Clear TuiFocusRing.Next_

Library: Terminal TUI Library
Category: Terminal TUI Library
Documented under: Widgets
Working examples: hello.tiko · form.tiko · dashboard.tiko


Home · Keyword Index

Clone this wiki locally