System.UITypes.TMsgDlgBtn
Delphi
TMsgDlgBtn = (mbYes, mbNo, mbOK, mbCancel, mbAbort, mbRetry, mbIgnore,
mbAll, mbNoToAll, mbYesToAll, mbHelp, mbClose);
C++
enum class DECLSPEC_DENUM TMsgDlgBtn : unsigned char { mbYes, mbNo, mbOK, mbCancel, mbAbort, mbRetry, mbIgnore, mbAll, mbNoToAll, mbYesToAll, mbHelp, mbClose };
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| enum | public | System.UITypes.pas System.UITypes.hpp |
System.UITypes | System.UITypes |
Description
TMsgDlgBtn defines a set of values used by MessageDlg and MessageDlgPos functions.
The TMsgDlgBtn enumeration defines the set of values a button in a message box can have. The TMsgDlgBtn values are used by the MessageDlg and MessageDlgPos functions.
The following table lists the possible values:
| Value | Meaning |
|---|---|
|
mbYes |
A button with 'Yes' on its face. |
|
mbNo |
A button the text 'No' on its face. |
|
mbOK |
A button the text 'OK' on its face. |
|
mbCancel |
A button with the text 'Cancel' on its face. |
|
mbAbort |
A button with the text 'Abort' on its face. |
|
mbRetry |
A button with the text 'Retry' on its face. |
|
mbIgnore |
A button the text 'Ignore' on its face. |
|
mbAll |
A button with the text 'All' on its face. |
|
mbNoToAll |
A button with the text 'No to All' on its face. |
|
mbYesToAll |
A button with the text 'Yes to All' on its face. |
|
mbHelp |
A button with the text 'Help' on its face. |
|
mbClose |
A button with the text 'Close' on its face. |
In addition, the FMX.Dialogs unit defines the following constants for commonly used TMsgDlgBtn values:
| Constant | Meaning |
|---|---|
|
mbYesNoCancel |
mbYes, mbNo, and mbCancel |
|
mbYesAllNoAllCancel |
mbYes, mbYesToAll, mbNo, mbNoToAll, and mbCancel |
|
mbOKCancel |
mbOK and mbCancel |
|
mbAbortRetryIgnore |
mbAbort, mbRetry, and mbIgnore |
|
mbAbortIgnore |
mbAbort, mbIgnore |
See Also