tixOptionMenu(n)
Hiii bestie π welcome to tixOptionMenu(n) from Tix Built-In Commands. We're about to make OptionMenu widgets make sense, and yes, it's giving main-character energy already. π¦
β¨ NAME β¨
tixOptionMenu β create and manipulate tixOptionMenu widgets. That's the whole vibe: you make the widget, then you poke at it. π
π SYNOPSIS π
tixOptionMenu pathName ?options?
π SUPER-CLASS π
The TixOptionMenu class is derived from the TixLabelWidget class and inherits all the commands, options and subwidgets of its super-class. Nepo baby behavior, but make it widget hierarchy. π«Ά
π STANDARD OPTIONS π
The OptionMenu widget supports all the standard Tix widget options. See the Tix-Options(n) manual entry for details on the standard Tix widget options. Slay, standard behavior, no notes.
π WIDGET-SPECIFIC OPTIONS π
-commandcommandβ Specifies the command to be called when the-valueoption of the OptionMenu is changed. The command will be called with one argument β the new value of the OptionMenu widget.-disablecallbackdisableCallbackβ A boolean value indicating whether callbacks should be disabled. When set totrue, theTCLcommand specified by the-commandoption is not executed when the-valueof the OptionMenu widget changes.-dynamicgeometrydynamicGeometryβ A boolean value indicating whether the size of the menubutton subwidget should change dynamically to match the width of the currently selected menu entry. If set tofalse(the default), the size of the menubutton subwidget will be wide enough to display every menu entry fully and does not change when the user selects different entries.-labellabelβ Specifies the string to display as the label of this OptionMenu widget.-labelsidelabelSideβ Specifies where the label should be displayed relative to the entry subwidget. Valid options are:top,left,right,bottom,noneoracrosstop.-statestateβ Specifies whether the OptionMenu widget is normal or disabled. Only the values"normal"and"disabled"are recognized.-valuevalueβ Specifies the value of the OptionMenu. The value of the OptionMenu widget is the name of the item currently displayed by its menubutton subwidget.-variablevariableβ Specifies the global variable in which the value of the OptionMenu should be stored. The value of the OptionMenu will be automatically updated when this variable is changed.
π¦ SUBWIDGETS π¦
- Name:
menuβ Class:Menuβ themenusubwidget, which is popped up when the user presses themenubuttonsubwidget. π« - Name:
menubuttonβ Class:Menubuttonβ themenubuttonsubwidget.
πΈ DESCRIPTION πΈ
The tixOptionMenu command creates a new window (given by the pathName argument) and makes it into an OptionMenu widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the OptionMenu such as its cursor and relief. Cute, configurable, iconic. π
β WIDGET COMMANDS β
The tixOptionMenu command creates a new Tcl command whose name is the same as the path name of the OptionMenu's window. This command may be used to invoke various operations on the widget. It has the following general form:
pathName option ?arg arg ...?
PathName is the name of the command, which is the same as the OptionMenu widget's path name. Option and the args determine the exact behavior of the command. The following commands are possible for OptionMenu widgets:
pathName add type name ?option value ...?β Adds a new item into the OptionMenu widget.typemust be eithercommandorseparator. The options may be any of the valid options for thecommandorseparatormenu entry types for theTKmenu widget class, except-command.pathName cget optionβ Returns the current value of the configuration option given byoption.Optionmay have any of the values accepted by thetixOptionMenucommand.pathName configure ?option? ?value option value ...?β Query or modify the configuration options of the widget. If nooptionis specified, returns a list describing all of the available options forpathName(seeTk_ConfigureInfofor information on the format of this list). Ifoptionis specified with novalue, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if nooptionis specified). If one or moreoption-valuepairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string.Optionmay have any of the values accepted by thetixOptionMenucommand.pathName delete nameβ Deletes the menu entry identified byname.pathName disable nameβ Disables the menu entry identified byname.pathName enable nameβ Enables the menu entry identified byname.pathName entrycget name optionβ Returns the current value of the configuration option given byoptionin the menu entry identified byname.Optionmay have any of the values accepted by theaddwidget command.pathName entryconfigure name ?option? ?value option value ...?β Query or modify the configuration options of the menu entry identified byname. If nooptionis specified, returns a list describing all of the available options for the menu entry (seeTk_ConfigureInfofor information on the format of this list). Ifoptionis specified with novalue, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if nooptionis specified). If one or moreoption-valuepairs are specified, then the command modifies the given option(s) to have the given value(s); in this case the command returns an empty string.Optionmay have any of the values accepted by theaddwidget command.pathName entriesβ Returns the names of all the entries currently in the OptionMenu widget.pathName subwidget name ?args?β When no options are given, this command returns the pathname of the subwidget of the specified name. When options are given, the widget command of the specified subwidget will be called with these options.
π₯ KEYWORDS π₯
Tix(n) β that's the keyword, bestie. Periodt. π
Byeee π«Άπ β footer flex time: this page's source/version energy is Tix 4.0 and the manual page is tixOptionMenu(n). Now go make those OptionMenu widgets slay. β¨
π¦ where this page comes from
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- Copyright (c) 1993-1999 Ioi Kim Lam
- Copyright (c) 2000-2001 Tix Project Group
- (c) 1990 The Regents of the University of California
- (c) 1994-1995 Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms