-activebackground -disabledcolor -justify -activeforeground -font -relief -anchor -foreground -takefocus -background -highlightcolor -text -bitmap -highlightthickness -underline -borderwidth -image
A menubutton is a widget that displays a textual string, bitmap, or image and is associated with a menu widget. If text is displayed, it must all be in a single font, but it can occupy multiple lines on the screen (if it contains newlines) and one of the characters may optionally be underlined using the underline option. In normal usage, pressing mouse button 1 over the menubutton causes the associated menu to be posted just underneath the menubutton. If the mouse button is released over the menubutton then the menu remains posted; clicking on the menubutton again unposts the menu. Releasing the mouse button over a menu entry invokes the entry, while releasing mouse button elsewhere unposts the menu.
Menubuttons are typically organized into groups called menu bars that allow scanning: if the mouse button is pressed over one menubutton (causing it to post its menu) and the mouse is moved over another menubutton without releasing the mouse button, then the menu of the first menubutton is unposted and the menu of the new menubutton is posted instead.
pathName option ?arg arg ...?
If the menubutton's state is disabled then none of the above actions occur: the menubutton is completely non-responsive.
The behaviour of menubuttons can be changed by defining new bindings for individual widgets or by redefining the class bindings.
MENUBUTTON(9 ) | Rev: Thu Feb 15 14:44:05 GMT 2007 |