two_menu(n) manual page
Back to the Index
Table of Contents
two_menu - Extended Tk menu widget command.
package require twoMenu ?1.0?
two_menu pathname ?options?
The two_menu is just a wrapper
around the Tk menu command. It has better support for setting accelerator
keys, underlinig and tooltips.
The difference between two_menu
and menu is only some additional entry options:
-alias string
- Set string
as an alias to the entry which can be used instead of the index.
-tip string
- Adds tooltip string to this widget. Practically the same as -info, as no
tooltips are displayed for menu entries, and the tip string is used if
there is no info for two_ttInfo.
-info string
- Adds info text for setting
two_ttInfo.
-xaccel key
- Adds
Control-key binding to all and displays Ctrl+key
as accelerator in the menu.
-label string
- Like in Tk menu widget, but the
first
& character will make the following character underlined (-underline
option), except if the following character is another & symbol.
-text string
- Just an alias to
-label in order to be more consistent with normal widgets.
Frank J. Leitner
frank@fjl.de
menu(n)
, two_tooltip(n)
.
Table of Contents
Back to the Index