URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
[/] [or1k_old/] [trunk/] [insight/] [tix/] [man/] [OptMenu.n] - Rev 1782
Compare with Previous | Blame | View Log
'\"'\" Copyright (c) 1996, Expert Interface Technologies'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\"'\" The file man.macros and some of the macros used by this file are'\" copyrighted: (c) 1990 The Regents of the University of California.'\" (c) 1994-1995 Sun Microsystems, Inc.'\" The license terms of the Tcl/Tk distrobution are in the file'\" license.tcl..so man.macros'----------------------------------------------------------------------.HS tixOptionMenu tix 4.0.BS'''----------------------------------------------------------------------.SH NAMEtixOptionMenu \- Create and manipulate tixOptionMenu widgets''''----------------------------------------------------------------------.SH SYNOPSIS\fBtixOptionMenu\fI \fIpathName ?\fIoptions\fR?'''----------------------------------------------------------------------.PP.SH SUPER-CLASSThe \fBTixOptionMenu\fR class is derived from the \fBTixLabelWidget\fRclass and inherits all the commands, options andsubwidgets of its super-class.''----------------------------------------------------------------------.SH "STANDARD OPTIONS"'The OptionMenu widget supports all the standard Tix widgetoptions. See the \fBTix-Options(n)\fR manual entry for details on thestandard Tix widget options.''----------------------------------------------------------------------.SH "WIDGET-SPECIFIC OPTIONS"''----------BEGIN.LP.nfName: \fBcommand\fRClass: \fBCommand\fRSwitch: \fB\-command\fR.fi.IPSpecifies the command to be called when the \fB\-value\fR option ofthe OptionMenu is changed. The command will be called with onearguments -- the new value of the OptionMenu widget.'----------END''----------BEGIN.LP.nfName: \fBdisableCallback\fRClass: \fBDisableCallback\fRSwitch: \fB\-disablecallback\fR.fi.IPA boolean value indicating whether callbacks should be disabled. Whenset to true, the TCL command specified by the \fB\-command\fR optionis not executed when the \fB\-value\fR of the OptionMenu widgetchanges.'----------END''----------BEGIN.LP.nfName: \fBdynamicGeometry\fRClass: \fBDynamicGeometry\fRSwitch: \fB\-dynamicgeometry\fR.fi.IPA boolean value indicating whether the size of the \fBmenubutton\fRsubwidget should change dynamically to match the width of thecurrently selected menu entry. If set to false (the default), the thesize of the menubutton subwidget will be wide enough to display everymenu entry fully and does not change when the user selects differententries.'----------END''----------BEGIN.LP.nfName: \fBlabel\fRClass: \fBLabel\fRSwitch: \fB\-label\fR.fi.IPSpecifies the string to display as the label of this OptionMenu widget.'----------END''----------BEGIN.LP.nfName: \fBlabelSide\fRClass: \fBLabelSide\fRSwitch: \fB\-labelside\fR.fi.IPSpecifies where the label should be displayed relative to the entrysubwidget. Valid options are: \fBtop\fR, \fBleft\fR, \fBright\fR,\fBbottom\fR, \fBnone\fR or \fBacrosstop\fR.'----------END''----------BEGIN.LP.nfName: \fBstate\fRClass: \fBState\fRSwitch: \fB\-state\fR.fi.IPSpecifies the whether the OptionMenu widget is normal or disabled. Onlythe values "normal" and "disabled" are recognized.'----------END''----------BEGIN.LP.nfName: \fBvalue\fRClass: \fBValue\fRSwitch: \fB\-value\fR.fi.IPSpecifies the value of the OptionMenu. The value of the OptionMenuwidget is the name of the item currently displayed by its\fBmenubutton\fR subwidget.'----------END''----------BEGIN.LP.nfName: \fBvariable\fRClass: \fBVariable\fRSwitch: \fB\-variable\fR.fi.IPSpecifies the global variable in which the value of the OptionMenushould be stored. The value of the OptionMenu will be automaticallyupdated when this variable is changed.'----------END''----------------------------------------------------------------------.SH SUBWIDGETS'----------BEGIN.LP.nfName: \fBmenu\fRClass: \fBMenu\fR.fi.IPThe menu subwidget, which is popped up when the user press the\fBmenubutton\fR subwidget.'----------END''----------BEGIN.LP.nfName: \fBmenubutton\fRClass: \fBMenubutton\fR.fi.IPThe menubutton subwidget.'----------END.BE'''----------------------------------------------------------------------.SH DESCRIPTION'.PP'The \fBtixOptionMenu\fR command creates a new window (given bythe \fIpathName\fR argument) and makes it into a OptionMenuwidget. Additional options, described above, may be specified on thecommand line or in the option database to configure aspects of theOptionMenu such as its cursor and relief.'''----------------------------------------------------------------------.SH WIDGET COMMANDS.PP'The \fBtixOptionMenu\fR command creates a new Tcl command whosename is the same as the path name of the OptionMenu'swindow. This command may be used to invoke various operations on thewidget. It has the following general form:'.DS C'\fIpathName option \fR?\fIarg arg ...\fR?.PP.DE'\fIPathName\fR is the name of the command, which is the same as theOptionMenu widget's path name. \fIOption\fR and the\fIarg\fRs determine the exact behavior of the command. The followingcommands are possible for OptionMenu widgets:''.TP\fIpathName \fBadd\fR \fItype name \fR?\fIoption value ...\fR?'Adds a new item into the OptionMenu widget. \fItype\fR must be either\fBcommand\fR or \fBseparator\fR. The \fIoptions\fR may be any of thevalid options for the \fBcommand\fR or \fBseparator\fR menu entrytypes for the TK \fBmenu\fR widget class, except \fB\-command\fR.'.TP\fIpathName \fBcget\fR \fIoption\fR'Returns the current value of the configuration option given by\fIoption\fR. \fIOption\fR may have any of the values accepted by the\fBtixOptionMenu\fR command.'.TP'\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?'Query or modify the configuration options of the widget. If no\fIoption\fR is specified, returns a list describing all of theavailable options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR forinformation on the format of this list). If \fIoption\fR is specifiedwith no \fIvalue\fR, then the command returns a list describing theone named option (this list will be identical to the correspondingsublist of the value returned if no \fIoption\fR is specified). Ifone or more \fIoption\-value\fR pairs are specified, then the commandmodifies the given widget option(s) to have the given value(s); inthis case the command returns an empty string. \fIOption\fR may haveany of the values accepted by the \fBtixOptionMenu\fR command.'.TP\fIpathName \fBdelete\fR \fIname\fR'Deletes the menu entry identified by \fIname\fR.''.TP\fIpathName \fBdisable\fR \fIname\fR'Disables the menu entry identified by \fIname\fR.'.TP\fIpathName \fBenable\fR \fIname\fR'Enables the menu entry identified by \fIname\fR.''.TP\fIpathName \fBentrycget\fR \fIname option\fR'Returns the current value of the configuration option given by\fIoption\fR in the menu entry identified by \fIname\fR. \fIOption\fRmay have any of the values accepted by the \fBadd\fR widget command.'.TP'\fIpathName \fBentryconfigure\fI name\fR ?\fIoption\fR? \fI?value option value ...\fR?'Query or modify the configuration options of the menu entry identifiedby \fIname\fR. If no \fIoption\fR is specified, returns a listdescribing all of the available options for the menu entry (see\fBTk_ConfigureInfo\fR for information on the format of this list).If \fIoption\fR is specified with no \fIvalue\fR, then the commandreturns a list describing the one named option (this list will beidentical to the corresponding sublist of the value returned if no\fIoption\fR is specified). If one or more \fIoption\-value\fR pairsare specified, then the command modifies the given option(s) tohave the given value(s); in this case the command returns an emptystring. \fIOption\fR may have any of the values accepted by the\fBadd\fR widget command.'.TP\fIpathName \fBentries\fR'Returns the names of all the entries currently in the OptionMenuwidget.'.TP\fIpathName \fBsubwidget \fIname ?args?\fR'When no options are given, this command returns the pathname of thesubwidget of the specified name.When options are given, the widget command of the specified subwidgetwill be called with these options.''''----------------------------------------------------------------------'.SH BINDINGS'.PP''''----------------------------------------------------------------------.SH KEYWORDSTix(n)
