Skip to content

Modern Tui TuiTreeState

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

Home › Terminal TUI Library › Overlays and Chrome › TuiTreeState

TuiTreeState

Holds a tree's selected node and scroll position.

Syntax

type TuiTreeState
    as int32 selected, offset
end type

Description

A tree's selection and scroll, owned by you. Expansion state lives in the tree itself.

Example

#import "std/tui"
using tui

dim as TuiTreeState st
print st.selected, st.offset      '' 0 0

See also

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

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