MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Tk Built-In Commands                            tkoptionMenu(1T)





NAME
     tkoptionMenu - Create an option menubutton and its menu

SYNOPSIS
     tkoptionMenu 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 tkoptionMenu is the name of the  menu
     associated  with w, so that the caller can change its confi-
     guration options or manipulate it in other ways.


KEYWORDS
     option menu

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:

     
       ATRIBUTE TYPE     ATRIBUTE VALUE
    
     Availability         SUNWTk         
    
     Interface Stability  Uncommitted    
    

NOTES
     Source for Tk is available on http:/opensolaris.org.










Tk                      Last change: 4.0                        1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™