TRsDialog
Created by Jeff Hiscock
Created on 03/15/00 9:30 PM
TRSDialog encapsulates the Application->MessageBox method to display different types for message boxes.
TComponent
There are no public properties.
Name | Data Type | Notes |
MessageTitle | String | The title of the message box. This string appears in the dialog caption |
MessageBody | String | The body of the message box. This string is the message shown |
ShowHelp | Boolean | IF true a help button is added to the dialog box |
Declaration | Notes |
int __fastcall DoYesNo(); | Displays a message box with Yes and No buttons and a Question mark icon. |
int __fastcall DoWarning(); | Displays a message box with an OK button and a "red stop sign" icon |
void __fastcall DoMessage(); | Displays a message box with an information icon and an OK button |
void __fastcall SimpleMessage(); | Displays a simple message with an icon and no buttons. Similar to the VCL ShowMessage |
int __fastcall DoRetryCancel(); | Displays a message box with Retry and Cancel buttons and an Information Icon |
There are no events.
All of the "Doxxxx" methods return an integer that is explained further in the MessageBox API documentation. As an example DoYesNO will return IDYES if the yes button was selected and IDNO if the no button was selected.
Download component and documentation