tixFileSelectBox(n)
π tixFileSelectBox β from the Tix Built-In Commands manual, bestie π
Okay so picture this: it's giving file-picker, but make it Tix. This is the manual page for tixFileSelectBox(n), and I'm gonna walk you through every single thing on it, no cap. β¨
πΈ NAME πΈ
tixFileSelectBox β create and manipulate Tix FileSelectBox widgets. That's the whole vibe. π¦
β¨ SYNOPSIS β¨
tixFileSelectBox pathName ?options?
Literally that's it. Give it a pathName, sprinkle some ?options? on top, and you've got yourself a widget. π
β STANDARD OPTIONS β
Real talk: the FileSelectBox widget supports all the standard options of a frame widget. All of them. Head over to the options(n) manual entry if you want the full tea on what those standard options actually are. π«Ά
π WIDGET-SPECIFIC OPTIONS π
These are the options that are, like, hers. π
-browsecmdbrowsecmd β tells the widget which command to run when the user browses through the files. Default mood: if-browsecmdis specified, that browse command fires when the user clicks on a filename in the Files listbox. π-commandcommand β the command to execute when the FileSelectBox is invoked. It gets called with exactly one parameter: the filename the user selected. Iconic. π―
And then this one gets the full character sheet treatment:
- Name:
directory - Class:
Directory - Switch:
-directory - Alias:
-dir
Says which directory to look for files in. By default it's the current working directory of the program, and it changes as the user browses through directories. It's giving "main character energy, but make it a path". π
-disablecallbackdisableCallback β a boolean value that says whether callbacks should be disabled. Set it to true and the TCL command from-commandwill not be executed when the-valueof theExFileSelectBoxwidget changes. Yes, that's exactly what it says. π-patternpattern β sets the matching pattern for which file names get listed in the Files listbox. Example:"*.c"matches every filename ending in".c". If you set this option to the empty string, the default pattern"*"gets used instead. Slay. π
Another full character sheet:
- Name:
value - Class:
Value - Switch:
-value - Alias:
-selection
Specifies the filename the user currently has selected. That's her whole job. π
π¦ SUBWIDGETS π¦
The FileSelectBox has a whole little friend group of subwidgets, and here's the roll call:
- Name:
dirlist - Class:
TixScrolledListBox
The scrolled listbox that shows the directories. π
- Name:
filelist - Class:
TixScrolledListBox
The scrolled listbox that shows the files. π
- Name:
filter - Class:
TixComboBox
The ComboBox listbox that shows the filter string. π
- Name:
selection - Class:
TixComboBox
The ComboBox listbox that shows the file selection. β
π DESCRIPTION π
The tixFileSelectBox command creates a new window (the one you passed as pathName) and turns it into a FileSelectBox widget. Extra options β the ones listed above β can be specified on the command line or in the option database to configure aspects of the FileSelectBox like its cursor and relief. Fancy. π
The FileSelectBox is similar to the standard Motif(TM) file-selection box. It's generally used for the user to choose a file. FileSelectBox stores the files most recently selected into a ComboBox widget so they can be quickly selected again β it remembers, and honestly? Obsessed. The tixFileSelectDialog widget is a combination of the FileSelectBox widget and a dialog widget. β¨
π₯ WIDGET COMMAND π₯
The tixFileSelectBox command creates a new Tcl command whose name is the same as the path name of the FileSelectBox's window. You use this command to invoke various operations on the widget. General form goes a little something like this:
pathName option ?arg arg ...?
PathName is the name of the command, which is the same as the FileSelectBox widget's path name. option and the args determine the exact behavior of the command. These are the commands FileSelectBox widgets support:
pathName cgetoption β returns the current value of the configuration option given byoption.optionmay have any of the values accepted by thetixFileSelectBoxcommand.pathName configure?option? ?value option value ...? β query or modify the configuration options of the widget. If nooptionis specified, it returns a list describing all the available options forpathName(seeTk_ConfigureInfofor info on the format of this list). Ifoptionis specified with novalue, the command returns a list describing that one named option β this list will be identical to the corresponding sublist of the value you'd get with no option specified. If one or moreoption-valuepairs are given, the command modifies the given widget option(s) to have the given value(s), and in that case the command returns an empty string.optionmay have any of the values accepted by thetixFileSelectBoxcommand.pathName filterβ updates the files listed in the FileSelectBox according to the filtering pattern specified in thefiltersubwidget. πpathName invokeβ executes the command specified by the-commandoption, with the filename stored in theselectionsubwidget. πpathName subwidgetname ?args? β when no options are given, this command returns the pathname of the subwidget with the specified name. When options are given, the widget command of that subwidget gets called with those options. iykyk π«Ά
π DEFAULT BINDINGS π
TIX automatically creates class bindings for FileSelectBoxes, and they give them the following default behavior. Count 'em:
- Mouse button 1 in the Directory listbox will change the filter string to the selected directory. π±οΈ
- Mouse button 1 in the Files listbox will change the filename that appears in the Selection entry. It will also trigger the
-browsecmdif that option has been specified. π - The current directory will be changed by (1) double clicking the Directory listbox or (2) invoking the Filter ComboBox. Please refer to the man page of
tixComboBoxfor the default bindings of the ComboBoxes and how they can be invoked. π - The command specified by the option
-commandwill be invoked by (1) double clicking the Files listbox or (2) invoking Selection ComboBox. π¬
Heads up bestie: those ComboBox bindings live in the tixComboBox man page, not here β go read that one for the full lore. π
π§ KEYWORDS π§
tixFileSelectBox, tixComboBox, tixFileSelectDialog, Tix(n), π
Okay that's the whole page, every flag and every binding intact, periodt. π
This was tixFileSelectBox(n) from Tix 4.0 β yeah, version 4.0, that's the one β so mwah, go build something cute with it. ππ«Άβ¨
π¦ 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