TRsDialog

Created by Jeff Hiscock

Created on 03/15/00 9:30 PM

  1. Purpose
  2. TRSDialog encapsulates the Application->MessageBox method to display different types for message boxes.

  3. Inheritance
  4. TComponent

  5. Properties
    1. Public
    2. There are no public properties.

    3. Published
    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
  6. Methods
    1. Public
    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

     

  7. Events
  8. There are no events.

     

     

  9. Notes

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