tixExFileSelectBox(n)
okay so bestie, you're looking at tixExFileSelectBox(n) from the Tix Built-In Commands set, name tag folded in and everything π«Ά. This widget is all about creating and manipulating tixExFileSelectBox widgets, and we're gonna cover every option, subwidget, and command together β periodt.
β¨ NAME β¨
tixExFileSelectBox β create and manipulate tixExFileSelectBox widgets.
πΈ SYNOPSIS πΈ
tixExFileSelectBox pathName ?options?
π¦ SUPER-CLASS π¦
The TixExFileSelectBox class does not have a super-class. literally none, bestie.
π STANDARD OPTIONS π
TixExFileSelectBox supports all the standard options of a frame widget. See the options(n) manual entry for details on the standard options.
π WIDGET-SPECIFIC OPTIONS π
-browsecmdbrowseCmd β tells Tix which command to call whenever the user browses a filename in the file listbox (usually by single-clicking the filename). The command is called with one argument: the complete pathname of the file.-commandcommand β tells Tix which command to call when the user chooses a filename in the file listbox (usually by double-clicking the filename). The command is called with one argument: the complete pathname of the file.-dialogdialog β says which dialog box contains thisExFileSelectBoxwidget. That dialog box must be a widget of the classTixShellor one of its descendant classes. This is an internal option, so application programmers should not use it.-dircmddircmd β the TCL command to call when a file listing is needed for a particular directory. If this option is not specified, theExFileSelectBoxwidget by default attempts to read the directory as a Unix directory. On special occasions, the application programmer may want to supply a special method for reading directories β for example, when he needs to list remote files. In that case, the-dircmdoption can be used. The specified command accepts three arguments: the first is the name of the directory to be listed; the second is a list of file patterns; the third is a Boolean value indicating whether hidden files should be listed. This command returns a list of names of the files of this directory which match with the file patterns.-directory(Name:directory, Class:Directory, Switch:-directory, Alias:-dir) β specifies the current directory whose files and sub-directories are displayed in theExFileSelectBox.-disablecallbackdisableCallback β a boolean value indicating whether callbacks should be disabled. When set to true, the TCL command specified by the-commandoption is not executed when the-valueof theExFileSelectBoxwidget changes.-filetypesfileTypes β specifies the file types that can be selected from the"List Files of Type:"ComboBox subwidget. The value of this option must be a TCL list; each item of this list must in turn be a list of two elements. The first element is a list of file patterns. The second element is a string that describes these file patterns. For example:
tixExFileSelectBox .box -filetypes {
{{*} {All files}}
{{*.txt} {Text files}}
{{*.c *.h} {C source files}}
}
-showhiddenshowHidden β specifies whether hidden directories should be shown. By default, a directory name starting with a period"."is considered a hidden directory.-patternpattern β specifies the file pattern(s) to match with the files in the current directory. One or more file patterns can be given at the same time. For example,{*.c *.h}will match all files that have either the".h"or".c"extensions.-value(Name:value, Class:Value, Switch:-value, Alias:-selection) β specifies the name of the filename currently selected by the user.
π SUBWIDGETS π
cancel(Class:Button) β the button widget with the"Cancel"label.dir(Class:TixComboBox) β the ComboBox subwidget under the"Directories"heading.dirlist(Class:TixDirList) β the DirList subwidget that shows the hierarchical list of directories.file(Class:TixComboBox) β the ComboBox subwidget under the"Files"heading.filelist(Class:TixScrolledListBox) β the ScrolledListBox subwidget that shows the list of filenames.hidden(Class:Checkbutton) β the checkbutton widget with the"Show Hidden Files"label.ok(Class:Button) β the button widget with the"OK"label.types(Class:TixComboBox) β the ComboBox subwidget under the"List Files of Type"heading.
π DESCRIPTION π
The tixExFileSelectBox command creates a new window (given by the pathName argument) and makes it into an ExFileSelectBox widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the ExFileSelectBox such as its cursor and relief.
The ExFileSelectBox widget is usually embedded in a tixExFileSelectDialog widget. It provides a convenient method for the user to select files. The style of the ExFileSelectBox widget is very similar to the standard file dialog in MS Windows 3.1.
π WIDGET COMMANDS π
The tixExFileSelectBox command creates a new Tcl command whose name is the same as the path name of the ExFileSelectBox'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 ExFileSelectBox widget's path name. Option and the args determine the exact behavior of the command. The following commands are possible for ExFileSelectBox widgets:
pathName cgetoption β returns the current value of the configuration option given by option. Option may have any of the values accepted by thetixExFileSelectBoxcommand.pathName configure ?option? ?value option value ...?β query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options forpathName(seeTk_ConfigureInfofor information on the format of this list). If option is specified with no value, 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 no option is 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. Option may have any of the values accepted by thetixExFileSelectBoxcommand.pathName filterβ forces theExFileSelectBoxwidget to re-filter all the filenames according to the-patternoption.pathName invokeβ forces theExFileSelectBoxwidget to perform actions as if the user has pressed the"OK"button.pathName subwidgetname ?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 π
okay that's the whole page, bestie β cute little sign-off time π«Ά: source/version is Tix 4.0, page is tixExFileSelectBox(n), and the footer doesn't print a date on this one, so no invented date here β just facts, vibes, and a lil sparkle π
β¨
π¦ 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