A DialogWidget is an itk widget for creating dialog windows. A dialog window here is a window with a message at top and a row of buttons at bottom. Through inheritance, you can add widgets inbetween.
bitmap Optional bitmap label. bitmapf Optional bitmap frame. bot Button frame at bottom. def Default frame (for image, bitmap, message...). default Frame surrounding the default dialog button. ext Extension frame (for subclasses). image Optional image label. imagef Optional image frame. text Optional message text. top The top frame has one frame for the message and bitmap and another for extensions defined in derived classes. button$i Components for buttons specified with the -buttons option. For example "buttonOK" for the OK button.
-bitmap Optional bitmap to display to left of message. -buttons One or more strings to display in buttons across the bottom of the dialog box. -default Index of button that is to display the default ring (-1 means none). -image Optional image to display above the message. -modal Flag: if true, grab the screen. -text Text of message (truncated if too long). -title Title to display in dialog's decorative frame.
add_buttons {} Create a row of buttons at the bottom of the dialog. init {} This method is called after the options have been evaluated. set_result {} This method may be redefined in a derived class to change the value that is returned from activate (default is the number of the button selected).
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory