dxCreateMessageDialog(string,TMsgDlgType,TMsgDlgButtons,TMsgDlgBtn) Method
Creates a message dialog box form with the specified settings.
Declaration
function dxCreateMessageDialog(const AMessage: string; ADialogType: TMsgDlgType; AButtons: TMsgDlgButtons; ADefaultButton: TMsgDlgBtn): 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. |
ADefaultButton | TMsgDlgBtn | A button type. Use this parameter to specify the button that has focus when the message box appears. |
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.
Note
The dxUseStandardMessageDialogs global variable has no effect on the dxCreateMessageDialog function.
See Also