Back to Devexpress

TdxMessageDialogForm Class

vcl-dxmessagedialog.md

latest5.7 KB
Original Source

TdxMessageDialogForm Class

The form class that implements a message dialog box with support for DevExpress look & feel settings.

Declaration

delphi
TdxMessageDialogForm = class(
    TdxForm
)

Remarks

All DevExpress controls use the TdxMessageDialogForm class to display message dialog boxes with support for skins and BBCode-inspired markup tags:

Main API Members

The list below outlines key members of the TdxMessageDialogForm class that allow you to define message text, move a message box on the screen, and change available buttons.

General Form Settings and Methods

The following public API members are derived from the standard TCustomForm class shipped with the VCL library:

CaptionSpecifies the form’s caption.CreateCreates a message dialog box.PixelsPerInchSpecifies the base DPI value for scale factor calculations.ShowModalInvokes the form as a modal dialog.ScaledSpecifies if DPI awareness is enabled for the form.Visible | Hide | ShowHide or display the form.Width | Height | ClientWidth | ClientHeightAllow you to adjust form and client area dimensions.

Tip

Refer to the TCustomForm class description for detailed information on all standard form API members.

Appearance and Content Settings

AlignButtonsCalculates optimal dimensions and positions for customized buttons.ButtonCountReturns the button count.ButtonsProvides access to dialog buttons by their indexes.DialogTypeReturns the message dialog box type.FindButtonProvides access to a dialog button by its type.MessageSpecifies a message with support for BBCode-inspired markup tags.SetPositionPositions the message box on the screen.StyleSpecifies the active message box layout style.

Behavior-Related API Members

HyperlinkClickProc | ShowHyperlinkHintProcAllow you to change the predefined behavior of hyperlinks defined in the message dialog box.SetDefaultButtonChanges the default dialog button.

Message Box Form Customization

If you need to adjust or customize the message dialog box layout, derive a custom form from the TdxMessageDialogForm class. Assign a reference to the created form class to the dxMessageDialogFormClass global variable to replace the built-in DevExpress message dialog box.

Inheritance

TObject TPersistent TComponent TControl TWinControl TScrollingWinControl TCustomForm TForm TdxForm TdxMessageDialogForm

See Also

Message Dialog Boxes

BBCode-Inspired Text Formatting Markup

TdxMessageDialogForm Members

dxMessageDialog Unit