TClrMessageBox.Show(TWinControl,String,String,TMessageBoxButtons,TMessageBoxIcon,TMessageBoxDefaultButton,TMessageBoxOptions_Set) Method
Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, default button, and options.
public class function Show(AOwner: TWinControl; Text: String; Caption: String; Buttons: TMessageBoxButtons; Icon: TMessageBoxIcon; DefaultButton: TMessageBoxDefaultButton; Options: TMessageBoxOptions_Set): TDialogResult; overload; static;
Parameters
- AOwner
- Type: TWinControl
An implementation of TWinControl that will own the modal dialog box.
- Text
- Type: String
The text to display in the message box.
- Caption
- Type: String
The text to display in the title bar of the message box.
- Buttons
- Type: System.Void
One of the MessageBoxButtons values that specifies which buttons to display in the message box.
- Icon
- Type: System.Void
One of the MessageBoxIcon values that specifies which icon to display in the message box.
- DefaultButton
- Type: System.Void
One of the MessageBoxDefaultButton values that specifies the default button for the message box.
- Options
- Type: System.Void
One of the MessageBoxOptions values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults.