


The menu command creates a new top-level window (given by the pathName argument) and makes it into a menu widget. If the option is true, no window manager border will be displayed around the menu and redisplay will be optimized using X's ``save under'' facility. False means that the menu will be displayed on the screen continuously, for example as a torn-off menu. True means that the menu is used on a transient basis, e.g. For example, if the option's is `` a b'' and menu. The actual command will consist of the value of this option, followed by a space, followed by the name of the menu window, followed by a space, followed by the name of the name of the torn off menu window. If this option has a non-empty value, then it specifies a Tcl command to invoke whenever the menu is torn off. The default menu bindings arrange for the menu to be torn off when the tear-off entry is invoked. If so, it will exist as entry 0 of the menu and the other entries will number starting at 1. This option must have a proper boolean value, which specifies whether or not the menu should include a tear-off entry at the top. The command is invoked by the post widget command before posting the menu.įor menu entries that are check buttons or radio buttons, this option specifies the color to display in the indicator when the check button or radio button is selected. If this option is specified then it provides a Tcl command to execute each time the menu is posted. See the options manual entry for details on the standard options. STANDARD OPTIONS -activebackground -background -disabledforeground-relief -activeborderwidth -borderwidth -font-takefocus -activeforeground -cursor -foreground Menu - Create and manipulate menu widgets Tk4.2 User Commands Man Page - menu (n) Table of Contents
