tixPopupMenu(n)
β¨ tixPopupMenu(n) β¨
okay so bestie, this is the manual page for tixPopupMenu from the Tix Built-In Commands, and it's literally giving "I make popup menus happen" energy. let's get into it π
πΈ NAME πΈ
tixPopupMenu β Create and manipulate tixPopupMenu widgets
β SYNOPSIS β
tixPopupMenu pathName ?options?
π SUPER-CLASS π
The tixPopupMenu class is derived from the TixShell class and inherits all the commands, options and subwidgets of its super-class. no cap, it gets everything handed down to it. periodt.
π STANDARD OPTIONS π
The PopupMenu widget supports all the standard options of a frame widget. See the options(n) manual entry for details on the standard options. iykyk.
π¦ WIDGET-SPECIFIC OPTIONS π¦
-buttons buttonsβ A Tcl list that specifies the mouse button(s) and key modifier(s) that bring up the popup menu. Each element of this list is in turn a list that contains two elements: the first element is an integer that indicates the mouse button that brings up the popup menu; the second element specifies the key modifiers that should be used in conjunction with the mouse button. For example, the value{{1 {Control Meta}} {3 {Any}}}specifies that the popup menu can be popped up by (a) pressing mouse button 1 with either the Control or the Meta key or (b) pressing mouse button 3 with any key modifier. The default value is{{3 {Any}}}: only mouse button 3 brings up the popup menu.-postcmd postCmdβ Specifies a command to be evaluated just before the menu is about to pop-up. This command is called with two default arguments: the root x-y coordinates where the user has pressed the mouse button. This command must return a boolean value: a false indicates that the menu shouldn't be popped up at this point; a true indicates that the menu should be popped up. This option can be used to find out where the user has pressed the mouse-button and optionally disable the popup menu over certain screen areas. iconic behaviour honestly.-spring springβ When set to true, the menu will be automatically popped down if the user releases the mouse button outside of the menu and no menu commands will be invoked. This makes it easy for the user to cancel the popup menu without pressing the Escape key. The default value is true.-state stateβ Must be eitherdisabledornormal. The PopupMenu widget will not pop up unless its-stateis set tonormal. so like, if it's disabled it's literally not coming to the party, sorry bestie.-title titleβ Specifies a text string to display inside the menubutton subwidget, as the title of this PopupMenu. the main character of the menubutton, if you will π
π§ SUBWIDGETS π§
- Name:
menuClass:Menu
The menu subwidget.
- Name:
menubuttonClass:Menubutton
The menubutton subwidget.
π DESCRIPTION π
The tixPopupMenu command creates a new window (given by the pathName argument) and makes it into a PopupMenu widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the PopupMenu widget such as its cursor and relief.
The Tix PopupMenu widget can be used as a replacement of the tk_popup command. The advantage of the Tix PopupMenu widget is it requires less application code to manipulate. Also, it provides a title for the popup menu, which is not available from tk_popup. it's giving "upgrade era" fr fr β¨
π₯ WIDGET COMMANDS π₯
The tixPopupMenu command creates a new Tcl command whose name is the same as the path name of the PopupMenu widget'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 PopupMenu widget's path name. option and the args determine the exact behavior of the command. The following commands are possible for PopupMenu widgets:
pathName bind widget ?widget ...?Binds this PopupMenu to one or more widgets. The PopupMenu will be activated when the user presses the right mouse button over these widgets. lowkey essential.pathName cget optionReturns the current value of the configuration option given byoption.optionmay have any of the values accepted by thetixPopupMenucommand.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 more option-value pairs 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 thetixPopupMenucommand. a whole lot, but you got this bestie π«ΆpathName post widget x yPosts the PopupMenu inside thewidgetat the coordinatex,y. the actual pop-up moment, the main event.pathName unbind widget ?widget ...?Cancels the PopupMenu's binding with thewidget(s). it's giving "we're breaking up" but like, it's fine.pathName subwidget name ?args?When no options are given, this command returns the pathname of the subwidget of the specifiedname.
When options are given, the widget command of the specified subwidget will be called with these options.
π KEYWORDS π
anyway that's the whole thing bestie, you're now a tixPopupMenu expert, no cap πβ¨π and just so you know, this was Tix version 4.0, dated tixPopupMenu(n) β slay, go make some popup menus, you're iconic π π
π¦ 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