TClrMessageBox.Show(TWinControl,String,String,TMessageBoxButtons,TMessageBoxIcon,TMessageBoxDefaultButton) Method

Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button.

Namespace: CNClrLib.Control.Base
public
 class function Show(AOwner: TWinControl; Text: String; Caption: String; Buttons: TMessageBoxButtons; Icon: TMessageBoxIcon;
 DefaultButton: TMessageBoxDefaultButton): 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.

Return Value

One of the DialogResult values.