Name

ExFileSelectBox

tixExFileSelectBox pathname [option value...]

The tixExFileSelectBox command creates a new tixExFileSelectBox megawidget named pathName. The tixExFileSelectBox class is derived from the tixPrimitive class. It provides a method for a user to select a file similar to the style used in Microsoft Windows.

Widget-Specific Options

-browsecmd tclCommand (browseCmd, BrowseCmd)

Command to call whenever the user browses on a file (usually by a single click). The filename is appended as an argument.

-command tclCommand (command, Command)

Command to call whenever the user activates a file (usually by a double click). The filename is appended as an argument.

-dialog dialog (dialog, Dialog)

Dialog box that contains this tixExFileSelectBox widget (internal use only).

-dircmd tclCommand (dirCmd, DirCmd)

Command to call when a file listing is needed. Three arguments are appended: the name of the directory to be listed, a list of file patterns, and a boolean that signifies whether hidden files should be listed. The Return value should be a list of files in the given directory. If this option is not specified, the default is to read the directory as a Unix directory.

-directory directory (directory, Directory)

The current directory whose files and subdirectories are displayed.

-disablecallback boolean (disableCallback, DisableCallback)

Whether callbacks (-command) are disabled.

-filetypes fileTypes (fileTypes, FileTypes)

List of file types that can be selected from the “List Files of Type” tix-ComboBox ...

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.