[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Dialogs' (#lcl)

# TMsgDlgBtn

Identifies dialog button types.

## Declaration

Source position: dialogs.pp line 37

`type TMsgDlgBtn = System.UITypes.TMsgDlgBtn;`

## Description

TMsgDlgBtn is an alias to the TMsgDlgBtn type in system.uitypes.pp. TMsgDlgBtn is an enumeration type with values that define the buttons that can be displayed in a message dialog. TMsgDlgBtn values also determine the modal result returned from the dialog when the corresponding button is clicked.

Values from the enumeration can be represented using the descriptive message button constants, such as: mbYes, mbNo, mbOK, mbCancel, mbAbort, mbRetry, mbIgnore, mbAll, mbNoToAll, mbYesToAll, mbHelp, and mbClose.

Values in the enumeration are used in various routines, such as: MessageDlg, MessageDlgPos, MessageDlgPosHelp, CreateMessageDialog, QuestionDlg, and LazMessageDlg.

## See also

mbYes |  | Alias to the TMsgDlgBtn enumeration value in system.uitypes.pp.
mbNo |  | Alias to the TMsgDlgBtn enumeration value in system.uitypes.pp.
mbOK |  | Alias to the TMsgDlgBtn enumeration value in system.uitypes.pp.
mbCancel |  | Alias to the TMsgDlgBtn enumeration value in system.uitypes.pp.
mbAbort |  | Alias to the TMsgDlgBtn enumeration value in system.uitypes.pp.
mbRetry |  | Alias to the TMsgDlgBtn enumeration value in system.uitypes.pp.
mbIgnore |  | Alias to the TMsgDlgBtn enumeration value in system.uitypes.pp.
mbAll |  | Alias to the TMsgDlgBtn enumeration value in system.uitypes.pp.
mbNoToAll |  | Alias to the TMsgDlgBtn enumeration value in system.uitypes.pp.
mbYesToAll |  | Alias to the TMsgDlgBtn enumeration value in system.uitypes.pp.
mbHelp |  | Alias to the TMsgDlgBtn enumeration value in system.uitypes.pp.
mbClose |  | Alias to the TMsgDlgBtn enumeration value in system.uitypes.pp.
MessageDlg |  | Shows a message to the user and gets the response.
MessageDlgPos |  | An extended MessageDlg function.
MessageDlgPosHelp |  | An extended MessageDlgPos function.
CreateMessageDialog |  | Creates a dialog form type with the specified caption, message, and buttons.
QuestionDlg |  | Shows a question to the user and gets a response. Similar to MessageDlg, but allows to use custom button captions and user-specified response values.
LazMessageDlg