Skip to content

Modern Tui TuiMenu

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

Home › Terminal TUI Library › Overlays and Chrome › TuiMenu

TuiMenu

Holds one menu of a menu bar: its label and its items.

Syntax

type TuiMenu
    as ustring label
    as TuiStringArray items
end type

Description

One menu on a menu bar: its label and its drop-down items.

Example

#import "std/tui"
using tui

dim as TuiMenu m
m.label = "File"
m.items.Push( "New" )
m.items.Push( "Open" )
m.items.Push( "Quit" )
print m.label, m.items.Count( )   '' File 3

See also

TuiPopup TuiMessageBox.Cancelled TuiStatusItem TuiStatusBar.Add
TuiMessageBox TuiMenuBar TuiStatusItemOf TuiTreeNode
TuiMessageBox.Accepted TuiMenuBar.IsOpen TuiStatusBar 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