A class for displaying a simple, standard dialog for presenting short messages and asking simple questions.
![]() | text Static text control for message. |
![]() | PSimpleDialog ( PInteractor * parent, const PString & str, ButtonsToHave btns = OkBtn, IconToShow icn = NoIcon ) Create a simple dialog for quick and easy user interface messages and questions. |
![]() | Info ( PInteractor * parent, PRESOURCE_ID resID, ... ) Display the simple dialog using the information icon and the Ök" button only. |
![]() | Error ( PInteractor * parent, PRESOURCE_ID resID, ... ) Display the simple dialog using the exclamation mark icon and the Ök" button only. |
![]() | FatalError ( PInteractor * parent, PRESOURCE_ID resID, ... ) Display the simple dialog using the stop sign icon and the Ök" button only. |
![]() | OkCancel ( PInteractor * parent, PRESOURCE_ID resID, ... ) Display the simple dialog using the question mark icon and the Ök" and "Cancel" buttons. |
![]() | YesNo ( PInteractor * parent, PRESOURCE_ID resID, ... ) Display the simple dialog using the question mark icon and the "Yes" and "No" buttons. |
![]() | YesNoCancel ( PInteractor * parent, PRESOURCE_ID resID, ... ) Display the simple dialog using the question mark icon and the "Yes", "No" and "Cancel" buttons. |
![]() | AbortRetryIgnore ( PInteractor * parent, PRESOURCE_ID resID, ... ) Display the simple dialog using the exclamation icon and the Äbort", "Retry" and "Ignore" buttons. |
![]() | New functions for class |
![]() | icon Static icon control for icon specified in constructor. |
![]() | btn1 First button, may be Ök", "Yes" or Äbort". |
![]() | btn2 Second button, may be "Cancel", "No" or "Retry". |
![]() | btn3 Third button, may be "Cancel" or "Ignore". |
![]() | btn1val Value to return if button 1 is pressed, eg WasOK. |
![]() | btn2val Value to return if button 2 is pressed, eg WasCancel. |
![]() | btn3val Value to return if button 3 is pressed, eg WasIgnore. |
![]() | Member variables |
Overrides from class PDialog
Overrides from class PInteractor
Overrides from class PObject
System callback functions.
A class for displaying a simple, standard dialog for presenting short messages and asking simple questions.A simple dialog consists of a static text item, an optional icon and up to three buttons with fixed names. What combination of icons and buttons is determined in the constructor parameters.
Even though a PSimpleDialog object can be created and treated in the same way as any other modal dialog, it is more usual to use one of the static functions provided. For example to ask a simple yes or not question the PSimpleDialog::YesNo() function would be used.
The value returned by the PModalDialog::RunModal() function indicates which button was pressed to terminate the modal dialog.
InformationIcon
QuestionIcon
ExclamationIcon
StopSignIcon
OkCancelBtn
RetryCancelBtn
YesNoBtn
YesNoCancelBtn
AbortRetryIgnoreBtn
WasCancel
WasRetry
WasYes
WasNo
WasAbort
WasIgnore
The default title for the dialog is as for the ultimate PTopLevelWindow parent interactor.
The message text may be printf style formatted output unless a
PString expression is used. Then the exact string is used in the
static text control.
The message text may be printf style formatted output unless a
PString expression is used. Then the exact string is used in the
static text control.
The message text may be printf style formatted output unless a
PString expression is used. Then the exact string is used in the
static text control.
The message text may be printf style formatted output unless a
PString expression is used. Then the exact string is used in the
static text control.
The message text may be printf style formatted output unless a
PString expression is used. Then the exact string is used in the
static text control.
The message text may be printf style formatted output unless a
PString expression is used. Then the exact string is used in the
static text control.
The message text may be printf style formatted output unless a
PString expression is used. Then the exact string is used in the
static text control.
New functions for class
static void Info( PInteractor * parent, PRESOURCE_ID resID, ... )
resID - Unique id for resource string to be used a printf style format string.static void Error( PInteractor * parent, PRESOURCE_ID resID, ... )
resID - Unique id for resource string to be used a printf style format string.static void FatalError( PInteractor * parent, PRESOURCE_ID resID, ... )
resID - Unique id for resource string to be used a printf style format string.static BOOL OkCancel( PInteractor * parent, PRESOURCE_ID resID, ... )
resID - Unique id for resource string to be used a printf style format string.static BOOL YesNo( PInteractor * parent, PRESOURCE_ID resID, ... )
resID - Unique id for resource string to be used a printf style format string.static ButtonType YesNoCancel( PInteractor * parent, PRESOURCE_ID resID, ... )
resID - Unique id for resource string to be used a printf style format string.static ButtonType AbortRetryIgnore( PInteractor * parent, PRESOURCE_ID resID, ... )
resID - Unique id for resource string to be used a printf style format string. Member variables
PStaticText* text
PStaticIcon* icon
PPushButton* btn1
PPushButton* btn2
PPushButton* btn3
ButtonType btn1val
ButtonType btn2val
ButtonType btn3val
Alphabetic index HTML hierarchy of classes or Java