Go up one levelGo to Previous Go to Next

EntryForm(n)

NAME

 
 EntryForm - Form dialog for entering data at given labels

NAMESPACE

 
 util

PARENT CLASS

 
 util::TopLevelWidget

SYNOPSIS

 
 EntryForm <path> ?options?

DESCRIPTION

 
 An EntryForm widget is a dialog for entering data at given labels.


ITK COMPONENTS

 
 buttons
        Frame containing dialog buttons.

 canvas
        Canvas used to add a scrollbar.

 entries
        Frame containing entries.

 title
        Title for window.

WIDGET OPTIONS

 
 -buttons
        List {{label cmd} {label cmd}} of additional buttons to display.

 -command
        Called with list of values when Enter button is pushed.

 -labels
        List of labels, one for each entry to be displayed.

 -title
        Title for dialog.

 -values
        Optional list of values, one for each entry to be displayed.

PUBLIC METHODS

 
 cancel {}
        Called for the Cancel button.

 reset {}
        Reset to the original values.

 resize {frame canvas cw ch}
        Called when the window is resized. the arguments are the entries
        frame (in the canvas), the canvas and the canvas width and hight.

 set_entry {label value}
        Set (reset) the value for the given entry.

PROTECTED METHODS

 
 enter_data {}
        This method is called to enter the data when the Enter button is
        pressed. Call the command specified by the -command option with a
        list of values, one for each label.

 eval_cmd {cmd}
        Add the contents of this window as a list argument to the given
        command and then evaluate it.

 init {}
        Called after options have been evaluated.

PROTECTED VARIABLES

 
 entries_
        Array(label) of entry widget for given label.

 initialized_
        Flag: set to 1 after init.

SEE ALSO

 
 TopLevelWidget(n)

 


- - - - - -
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