ttk_menubutton - Widget that pops down a menu when pressed
Synopsis
ttk::menubutton pathName ?options?
Description
ttk::menubutton(1t) Tk Themed Widget ttk::menubutton(1t)
______________________________________________________________________________
NAME
ttk::menubutton - Widget that pops down a menu when pressed
SYNOPSIS
ttk::menubutton pathName ?options?
______________________________________________________________________________
DESCRIPTION
A ttk::menubutton widget displays a textual label and/or image, and
displays a menu when pressed.
STANDARD OPTIONS
-class -compound -cursor
-image -state -style
-takefocus -text -textvariable
-underline -width
See the ttk_widget manual entry for details on the standard options.
WIDGET-SPECIFIC OPTIONS
Command-Line Name:-direction
Database Name: direction
Database Class: Direction
Specifies where the menu is to be popped up relative to the
menubutton. One of: above, below, left, right, or flush. The
default is below. flush pops the menu up directly over the
menubutton.
Command-Line Name:-menu
Database Name: menu
Database Class: Menu
Specifies the path name of the menu associated with the menubut-
ton. To be on the safe side, the menu ought to be a direct
child of the menubutton.
WIDGET COMMAND
Menubutton widgets support the standard cget, configure, identify,
instate, and state methods. No other widget methods are used.
STANDARD STYLES
Ttk::menubutton widgets support the Toolbutton style in all standard
themes, which is useful for creating widgets for toolbars.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+------------------+
|Availability | runtime/tk-8 |
+---------------+------------------+
|Stability | Uncommitted |
+---------------+------------------+
SEE ALSO
ttk::widget(n), menu(n), menubutton(n)
KEYWORDS
widget, button, menu
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from https://source-
forge.net/projects/tcl/files/Tcl/8.6.7/tk8.6.7-src.tar.gz/download.
Further information about this software can be found on the open source
community website at https://www.tcl.tk/.
Tk 8.5 ttk::menubutton(1t)