Skip to content

Modern Tui TuiTree VisibleCount

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

Home › Terminal TUI Library › Overlays and Chrome › TuiTree.VisibleCount

TuiTree.VisibleCount

Counts the nodes currently shown, leaving out those inside collapsed nodes.

Syntax

TuiTree.VisibleCount( ) as int32

Description

How many nodes are currently visible -- children of a collapsed node do not count. This is the number a scrollbar wants, not nodes.Count.

Example

#import "std/tui"
using tui

dim as TuiTreeState st
dim as TuiTree t
t.Add( "root", 0, TRUE, 1 )
t.Add( "hidden child", 1, FALSE, 2 )
t.state = @st
print t.nodes.Count( )            '' 2
print t.VisibleCount( ) <= t.nodes.Count( ) '' -1 (true)

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