Advanced Search
Mail us
Home    Manuel    Links    Faq     Some examples tcl/tk codes     Man of Bwidget with screenshot     Man of blt with screenshot


NAME

tk_optionMenu - Create an option menubutton and its menu

SYNOPSIS

tk_optionMenu w varName value ?value value ...?

DESCRIPTION

This 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 values 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.

KEYWORDS

option menu
Copyright © 1990-1994 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.
Copyright © 1995-1997 Roger E. Critchlow Jr.
Erreur (1146) : Table 'tcltk.tcltksamplemancode' doesn't exist

Add a code sample :


Please enter your name and your email ( the I could thank's you ). Don't enter html code in the text area If you have any problem email me at this adress vidalc@club-internet.fr
 Your name    
 Your email    
 Your example