![]() |
![]()
| ![]() |
![]()
See the file man.macros. NAMEToplevel - base class for mega-widgets in a top-level window INHERITANCEitk::Archetype <- itk::Toplevel STANDARD OPTIONSbackground cursor See the "options" manual entry for details on the standard options. WIDGET-SPECIFIC OPTIONSName: title Class: Title Command-Line Switch: -title
DESCRIPTIONThe Toplevel class inherits everything from the Archetype class, and adds a Tk toplevel called the "hull" component to represent the body of the mega-widget. The window class name for the hull is set to the most-specific class name for the mega-widget. The protected variable itk_interior contains the window path name for the "hull" component. Derived classes specialize this widget by packing other widget components into the hull. Since the hull for the Toplevel class is implemented with a Tk toplevel, mega-widgets in the Toplevel class have their own toplevel window. This class is used to create dialog boxes and other pop-up windows. COMPONENTSName: hull Class: Toplevel
EXAMPLEThe following example implements a MessageInfo mega-widget. It creates a pop-up message that the user can dismiss by pushing the "Dismiss" button. option add *MessageInfo.title "Notice" widgetDefault itcl::class MessageInfo {
itk::usual MessageInfo {
# # EXAMPLE: Create a notice window: # MessageInfo .m -message "File not found:\n/usr/local/bin/foo" KEYWORDSitk, Archetype, Widget, mega-widget
|