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

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

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

Return Value

One of the DialogResult values.