1ttk::menubutton(n)             Tk Themed Widget             ttk::menubutton(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       ttk::menubutton - Widget that pops down a menu when pressed
9

SYNOPSIS

11       ttk::menubutton pathName ?options?
12______________________________________________________________________________
13

DESCRIPTION

15       A  ttk::menubutton  widget  displays  a textual label and/or image, and
16       displays a menu when pressed.
17

STANDARD OPTIONS

19       -class                -compound            -cursor
20       -image                -state               -style
21       -takefocus            -text                -textvariable
22       -underline            -width
23
24       See the ttk_widget manual entry for details on the standard options.
25

WIDGET-SPECIFIC OPTIONS

27       Command-Line Name:-direction
28       Database Name:  direction
29       Database Class: Direction
30
31              Specifies where the menu is to be  popped  up  relative  to  the
32              menubutton.   One  of: above, below, left, right, or flush.  The
33              default is below.  flush pops the  menu  up  directly  over  the
34              menubutton.
35
36       Command-Line Name:-menu
37       Database Name:  menu
38       Database Class: Menu
39
40              Specifies the path name of the menu associated with the menubutā€
41              ton.  To be on the safe side, the menu  ought  to  be  a  direct
42              child of the menubutton.
43

WIDGET COMMAND

45       Menubutton  widgets  support  the  standard  cget, configure, identify,
46       instate, and state methods.  No other widget methods are used.
47

STANDARD STYLES

49       Ttk::menubutton widgets support the Toolbutton style  in  all  standard
50       themes, which is useful for creating widgets for toolbars.
51

STYLING OPTIONS

53       The class name for a ttk::menubutton is TMenubutton.
54
55       Dynamic states: active, disabled, readonly.
56
57       TMenubutton styling options configurable with ttk::style are:
58
59       -arrowsize amount
60       -background color
61       -compound compound
62       -foreground color
63       -font font
64       -padding padding
65       -relief relief
66       -width amount
67
68       Some options are only available for specific themes.
69
70       See  the ttk::style manual page for information on how to configure ttk
71       styles.
72

SEE ALSO

74       ttk::widget(n), menu(n), menubutton(n)
75

KEYWORDS

77       widget, button, menu
78
79
80
81Tk                                    8.5                   ttk::menubutton(n)
Impressum