#include <dialogs.h>
Inheritance diagram for TDialog::
Public Methods | |
TDialog (const TRect &bounds, const char *aTitle) | |
virtual TPalette& | getPalette () const |
virtual void | handleEvent (TEvent &event) |
virtual Boolean | valid (ushort command) |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
const char* const | name |
Protected Methods | |
TDialog (StreamableInit) |
Data member growMode is set to zero; that is, dialog boxes are not growable. The flags data member is set for wfMove and wfClose; that is, dialog boxes are moveable and closable (a close icon is provided).
The TDialog event handler calls TWindow::handleEvent() but additionally handles the special cases of Esc and Enter key responses. The Esc key generates a cmCancel command, while Enter generates the cmDefault command.
Definition at line 136 of file dialogs.h.
|
Creates a dialog box with the given size and title by calling TWindow::TWindow(bounds, aTitle, wnNoNumber) and TWindowInit::TWindowInit(&TDialog::initFrame).
By default, dialog boxes can move and close (via the close icon) but cannot grow (resize). Note that TDialog does not define its own destructor, but uses TWindow::close() and the destructors inherited from TWindow, TGroup, and TView.
|
|
Each streamable class needs a "builder" to allocate the correct memory for its objects together with the initialized virtual table pointers. This is achieved by calling this constructor with an argument of type StreamableInit. |
|
Called to create an object in certain stream-reading situations. Reimplemented from TWindow. Reimplemented in TColorDialog, TFileDialog, and TChDirDialog. |
|
Returns the default palette string. Reimplemented from TWindow. |
|
Calls TWindow::handleEvent(event), then handles Enter and Esc key events specially.
This member function also handles cmOK, cmCancel, cmYes, and cmNo command events by ending the modal state of the dialog box. For each of the above events handled successfully, this member function calls clearEvent(). Reimplemented from TWindow. Reimplemented in TColorDialog, TFileDialog, and TChDirDialog. |
|
Returns True if the command argument is cmCancel. This is the command generated by handleEvent() when the Esc key is detected. If the command argument is not cmCancel, valid calls TGroup::valid(command) and returns the result of this call.
Reimplemented from TGroup. Reimplemented in TFileDialog, and TChDirDialog. |
|
Undocumented. Reimplemented from TWindow. Reimplemented in TColorDialog, TFileDialog, and TChDirDialog. |