Query: tk_optionmenu
OS: opensolaris
Section: 1t
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
tk_optionMenu(1T) Tk Built-In Commands tk_optionMenu(1T) __________________________________________________________________________________________________________________________________________________NAMEtk_optionMenu - Create an option menubutton and its menuSYNOPSIStk_optionMenu w varName value ?value value ...? _________________________________________________________________DESCRIPTIONThis procedure creates an option menubutton whose name is w, plus an associated menu. Together they allow the user to select one of the values given by the value arguments. The current value will be stored in the global variable whose name is given by varName and it will also be displayed as the label in the option menubutton. The user can click on the menubutton to display a menu containing all of the val- ues and thereby select a new value. Once a new value is selected, it will be stored in the variable and appear in the option menubutton. The current value can also be changed by setting the variable. The return value from tk_optionMenu is the name of the menu associated with w, so that the caller can change its configuration options or manipulate it in other ways.KEYWORDSoption menuATTRIBUTESSee attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWTk | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+NOTESSource for Tk is available on http://opensolaris.org. Tk 4.0 tk_optionMenu(1T)
Related Man Pages |
---|
menubutton(1t) - opensolaris |
menubutton(n) - centos |
ttk::menubutton(n) - centos |
ttk::menubutton(ntcl) - mojave |
ttk::menubutton(n) - mojave |
Similar Topics in the Unix Linux Community |
---|
reappearing menu list using select |
Scripting help |
Not able to get value in the variable |
script to ask the user to select a number |
Output to console and to log |