Skip to main content
A newer version of this page is available. .

dxCreateMessageDialog(string,TMsgDlgType,TMsgDlgButtons) Method

Creates a message dialog box form with the specified settings.

Declaration

function dxCreateMessageDialog(const AMessage: string; ADialogType: TMsgDlgType; AButtons: TMsgDlgButtons): TdxMessageDialogForm;

Parameters

Name Type Description
AMessage string

Content of the message dialog box.

ADialogType TMsgDlgType

The type of the message dialog box. This type defines the predefined caption, system icon, and sound of the message dialog box.

AButtons TMsgDlgButtons

A set of buttons on the message dialog box form.

Returns

Type Description
TdxMessageDialogForm

The created message dialog box form.

Remarks

You can call this function instead of the TdxMessageDialogForm’s constructor. The created message dialog box has the mdsMessageDlg style.

Message Dialog Box Example

Note

The dxUseStandardMessageDialogs global variable has no effect on the dxCreateMessageDialog function.

See Also