Skip to content

Modern Tui TuiFocusRing Next

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

Home › Terminal TUI Library › Widgets › TuiFocusRing.Next_

TuiFocusRing.Next_

Moves focus to the next widget, wrapping at the end, as Tab does.

Syntax

TuiFocusRing.Next_( )

Description

Moves focus forward, wrapping at the end. This is Tab. The underscore is because NEXT is a statement.

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 )

ring.Next_( )
print ring.Current( ).Value( ) = @b '' -1 (true)
ring.Next_( )
print ring.Current( ).Value( ) = @a '' -1 (true)  -- it wrapped

See also

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

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