Documentation‎ > ‎Menus‎ > ‎

gnocl::menuSeparator

A menu item which visually separates different items.

Synopsis

gnocl::menuSeparator [-option value...]

Screenshot


Options

-sensitive
type: boolean (default: 1)
Whether or not the item is sensitive to user input.
-name
type: string
Name of the widget, can be used to set options in an rc file.
-visible
type: boolean (default: 1)
Whether or not the item is visible.

Description

A menu separator visually separates different items.

Commands

id delete
Deletes the widget and the associated tcl command.
id configure [-option value...]
Configures the widget. Option may have any of the values accepted on creation of the widget.

Example


set menu [gnocl::menu \
    -title "menuSeparator"]

$menu add [gnocl::menuItem \
    -text "%#Save" \
    -onClicked {puts "save"}]

$menu add [gnocl::menuSeparator]

$menu add [gnocl::menuItem \
    -text "%#Quit" \
    -onClicked exit]

$menu popup

results in



Comments