|
See the file man.macros. NAMEtixFileEntry - Create and manipulate tixFileEntry widgetsSYNOPSIStixFileEntry pathName ?options?SUPER-CLASSThe TixFileEntry class is derived from the TixLabelWidget class and inherits all the commands, options and subwidgets of its super-class.STANDARD OPTIONSThe FileEntry widget supports all the standard options of a frame widget. See the options(n) manual entry for details on the standard options.WIDGET-SPECIFIC OPTIONS[-activatecmd activateCmd] Specifies the command to be called when the user activates the button subwidget. This command is called before the file dialog is popped up and can be used to customize the file dialog (which may be shared by several FileEnt widget). [-command command] Specifies the command to be called when the -value option of the FileEntry is changed. This usually happens when the user inputs a filename into the entry subwidget and hits the <Return> key. The command will be called with one arguments -- the new value of the FileEntry widget. [-dialogtype dialogType] Specifies which type of file selection dialog should be popped up when the user invokes the button subwidget. Currently the following values are valid: tixFileSelectDialog, tixExFileSelectDialog, tk_getOpenFile, tk_getSaveFile or tk_chooseDirectory. [-disablecallback disableCallback] A boolean value indicating whether callbacks should be disabled. When set to true, the TCL command specified by the -command option is not executed when the -value of the FileEntry widget changes. [-disableforeground disableForeground] The foreground color to use for of the entry subwidget when the FileEntry widget is disabled. [-filebitmap fileBitmap] Specifies the bitmap to display in side the button subwidget. [-label label] Specifies the string to display as the label of this FileEntry widget. [-labelside labelSide] Specifies where the label should be displayed relative to the entry subwidget. Valid options are: top, left, right, bottom, none or acrosstop. [-selectmode selectMode] Specifies how the FileEntry widget should react to <KeyPress> events. When set to "immediate", any user keyboard inputs will immediately change the -value option. When set to "normal", the user keyboard inputs will be copied to the -value option only if the <Return> key is pressed or the keyboard focus is changed. The use of the immediate mode is discouraged. For effective use of the FileEntry widget, one should use the normal mode together with the update widget command (see below). [-state state] Specifies the whether the FileEntry widget is normal or disabled. Only the values "normal" and "disabled" are recognized. [-validatecmd validateCmd] Specifies a TCL command to be called when the -value of the FileEntry widget is about to change. This command is called with one parameter -- the new -value entered by the user. This command is to validate this new value by returning a value it deems valid. [-value value] Specifies the value of the FileEntry. [-variable variable] Specifies the global variable in which the value of the FileEntry should be stored. The value of the FileEntry will be automatically updated when this variable is changed.SUBWIDGETSName: button Class: Button
Name: entry Class: Entry
DESCRIPTIONThe tixFileEntry command creates a new window (given by the pathName argument) and makes it into a FileEntry widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the FileEntry such as its cursor and relief.The FileEntry widget can be used to input a filename. The user can type in the filename manually. Alternatively, the user can press the button widget that sits next to the entry, which will bring up a file selection dialog of the type specified by the -dialogtype option. WIDGET COMMANDSThe tixFileEntry command creates a new Tcl command whose name is the same as the path name of the FileEntry'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 FileEntry
widget's path name. Option and the args determine the exact
behavior of the command. The following commands are possible for FileEntry
widgets:
KEYWORDSTix(n)
Visit the GSP FreeBSD Man Page Interface. |