Go up one levelGo to Previous Go to Next

FileSelect(n)

NAME

 
 FileSelect - OSF/Motif standard file selection dialog

NAMESPACE

 
 util

PARENT CLASS

 
 util::TopLevelWidget

SYNOPSIS

 
 FileSelect <path> ?options?

DESCRIPTION

 
 This class implements a version of the OSF/Motif standard file
 selection dialog box using primitive widgets as the building blocks.
 This is a modified version of an old widget written by Mark Ulferts
 that is still used because of poor performance in the iwidgets2.x
 version.  This should probably be replaced when we move to tcl8.x.


WIDGET OPTIONS

 
 -button_1
         The button label for button 1.

 -button_2
         The button label for button 2.

 -button_3
         The button label for button 3.

 -dir
        Initial directory, default to [pwd].

 -dirlabel
        Label for directory list, default "Directories".

 -dispdir
         Display directory list, yes or no, default yes.

 -dispfile
         Display file list, yes or no, default yes.

 -dispfilter
         Display filter, yes or no, default yes.

 -dispselect
         Display selection, yes or no, default yes.

 -filelabel
        Label for file list, default "Files".

 -filter
         File list filter, defaults to "*".

 -filter_types
         Add an optional menu of file suffixes (preset file filters).

 -filterlabel
        The label string above the filter widget.

 -full
        Display full file names, yes/no, default no.

 -height
         Set the height of the directory and file lists.

 -modal
         flag: if true, grab the screen.

 -selectlabel
        Label for selection entry, default "Selection".

 -title
        Set the window title.

 -width
        Set the width of the selection and filter entry widgets.

PUBLIC METHODS

 
 activate {}
        Perform a grab operation, install the button callbacks, and wait
        for the result.  Make sure to reset the working directory back to
        the original before returning the result.

 get {}
         Return the selection.

 set_filter_type {type}

        Method: Set the filter type to a known value.
        .

PROTECTED METHODS

 
 _cancelcmd {}
 


- - - - - -
Last change: 07 May 99

 


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory