1tk_optionMenu(n)             Tk Built-In Commands             tk_optionMenu(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       tk_optionMenu - Create an option menubutton and its menu
9

SYNOPSIS

11       tk_optionMenu pathName varName value ?value value ...?
12______________________________________________________________________________
13

DESCRIPTION

15       This  procedure  creates  an  option menubutton whose name is pathName,
16       plus an associated menu.  Together they allow the user to select one of
17       the  values  given  by  the value arguments.  The current value will be
18       stored in the global variable whose name is given  by  varName  and  it
19       will also be displayed as the label in the option menubutton.  The user
20       can click on the menubutton to display a menu  containing  all  of  the
21       values  and  thereby select a new value.  Once a new value is selected,
22       it will be stored in the variable and appear in the option  menubutton.
23       The current value can also be changed by setting the variable.
24
25       The  return value from tk_optionMenu is the name of the menu associated
26       with pathName, so that the caller can change its configuration  options
27       or manipulate it in other ways.
28

EXAMPLE

30              tk_optionMenu .foo myVar Foo Bar Boo Spong Wibble
31              pack .foo
32

KEYWORDS

34       option menu
35
36
37
38Tk                                    4.0                     tk_optionMenu(n)
Impressum