Contains types and constants used in modal dialogs.

uitypes.pas contains types and constants used in modal dialogs.

This file is part of the lazutils package.

The UITypes unit has been marked as deprecated in versions after 2.0.12. Use the System.UITypes unit from the FPC 3.2.0 (or higher) Run-time Library (RTL).
Alias to TMsgDlgType.mtWarning in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgType.mtError in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgType.mtInformation in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgType.mtConfirmation in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgType.mtCustom in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgBtn.mbYes in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgBtn.mbNo in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgBtn.mbOK in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgBtn.mbCancel in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgBtn.mbAbort in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgBtn.mbRetry in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgBtn.mbIgnore in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgBtn.mbAll in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgBtn.mbNoToAll in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgBtn.mbYesToAll in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgBtn.mbHelp in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to TMsgDlgBtn.mbClose in the System.UITypes unit for the FPC RTL.
Available in FPC 3.2.0 and Lazarus versions after 2.0.12.
Alias to the TMsgDlgType type in the FPC RTL.

TMsgDlgType is an enumeration type that defines the type of dialog implemented in a message box. Values in the enumeration determine the caption, icon, string literals, and buttons displayed in various dialog types.

TMsgDlgType is used in several routines, such as: MessageDlg, MessageDlgPos, MessageDlgPosHelp, CreateMessageDialog, QuestionDlg, and LazMessageDlg.

TMsgDlgType has been deprecated in the UITypes unit for Lazarus versions after 2.0.12. Use the TMsgDlgType type from the System.UITypes unit in the FPC 3.2.0 RTL instead.
MessageDlg MessageDlgPos CreateMessageDialog QuestionDlg LazMessageDlg
Warning message box with an Exclamation mark icon.
Error message box with Stop sign icon.
Information message box with an Info icon.
Confirmation message box with a Question mark icon.
Custom message box; No icon is displayed, and the caption contains the value in ApplicationName.
Alias to the TMsgDlgBtn type in the FPC RTL.

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 in the enumeration are used in various routines, such as: MessageDlg, MessageDlgPos, MessageDlgPosHelp, CreateMessageDialog, QuestionDlg, and LazMessageDlg.

TMsgDlgBtn has been deprecated in the UITypes unit for Lazarus versions after 2.0.12. Use the TMsgDlgBtn type from the System.UITypes unit in the FPC 3.2.0 RTL instead.
MessageDlg MessageDlgPos MessageDlgPosHep CreateMessageDialog QuestionDlg LazMessageDlg
Displays a 'Yes' button.
Displays a 'No' button.
Displays an 'OK' button.
Displays a 'Cancel' button.
Displays an 'Abort' button.
Displays a 'Retry' button.
Displays an 'Ignore' button.
Displays an 'All' button.
Displays a 'No to All' button.
Displays a 'Yes to All' button.
Displays a 'Help' button.
Displays a 'Close' button.
Alias to the TMsgDlgButtons type in the FPC RTL.

TMsgDlgButtons is a set type used to store zero or more values from the TMsgDlgBtn enumeration. TMsgDlgButtons is passed as an argument to routines like: MessageDlg, MessageDlgPos, MessageDlgPosHelp, CreateMessageDialog, QuestionDlg, and LazMessageDlg.

TMsgDlgButtons has been deprecated in the UITypes unit for Lazarus versions after 2.0.12. Use the TMsgDlgButtons type from the System.UITypes unit in the FPC 3.2.0 RTL instead.
MessageDlg MessageDlgPos MessageDlgPosHelp CreateMessageDialog QuestionDlg LazMessageDlg
Alias to the TModalResult type in the FPC RTL.

TModalResult is an Integer type with a value in the range low(Integer)..high(Integer). TModalResult is the type returned by routines that display modal dialog boxes, such as: MessageDlg, MessageDlgPos, MessageDlgPosHelp, QuestionDlg, and LazMessageDlg.

The value in TModalResult indicates the button clicked to close the modal dialog, and contains one of the constant values:

- mrNone
- mrOK
- mrCancel
- mrAbort
- mrRetry
- mrIgnore
- mrYes
- mrNo
- mrAll
- mrNoToAll
- mrYesToAll
- mrClose
- mrLast

TModalResult has been deprecated in the UITypes unit for Lazarus versions after 2.0.12. Use the TMsgDlgType type from the System.UITypes unit in the FPC 3.2.0 RTL instead.
MessageDlg MessageDlgPos MessageDlgPosHelp CreateMessageDialog QuestionDlg LazMessageDlg
Alias to the PModalResult type in the FPC RTL.

PModalResult is a pointer type to a TModalResult value.

PModalResult has been deprecated in the UITypes unit for Lazarus versions after 2.0.12. Use the TMsgDlgType type from the System.UITypes unit in the FPC 3.2.0 RTL instead.
Dialog was closed without pressing a button.
Deprecated for Lazarus versions after 2.0.12. Use the mrNone constant from the System.UITypes unit in the FPC 3.2.0 RTL.
OK button was clicked.
Deprecated for Lazarus versions after 2.0.12. Use the mrOK constant from the System.UITypes unit in the FPC 3.2.0 RTL.
Cancel button was clicked.
Deprecated for Lazarus versions after 2.0.12. Use the mrCancel constant from the System.UITypes unit in the FPC 3.2.0 RTL.
Abort button was clicked.
Deprecated for Lazarus versions after 2.0.12. Use the mrAbort constant from the System.UITypes unit in the FPC 3.2.0 RTL.
Retry button was clicked.
Deprecated for Lazarus versions after 2.0.12. Use the mrRetry constant from the System.UITypes unit in the FPC 3.2.0 RTL.
Ignore button was clicked.
Deprecated for Lazarus versions after 2.0.12. Use the mrIgnore constant from the System.UITypes unit in the FPC 3.2.0 RTL.
Yes button was clicked.
Deprecated for Lazarus versions after 2.0.12. Use the mrYes constant from the System.UITypes unit in the FPC 3.2.0 RTL.
No button was clicked.
Deprecated for Lazarus versions after 2.0.12. Use the mrNo constant from the System.UITypes unit in the FPC 3.2.0 RTL.
All button was clicked.
Deprecated for Lazarus versions after 2.0.12. Use the mrAll constant from the System.UITypes unit in the FPC 3.2.0 RTL.
No to All button was clicked.
Deprecated for Lazarus versions after 2.0.12. Use the mrNoToAll constant from the System.UITypes unit in the FPC 3.2.0 RTL.
Yes to All button was clicked.
Deprecated for Lazarus versions after 2.0.12. Use the mrYesToAll constant from the System.UITypes unit in the FPC 3.2.0 RTL.
link id="#rtl.system.uitypes.mrYesToAll"/
Close button was clicked.
Deprecated for Lazarus versions after 2.0.12. Use the mrClose constant from the System.UITypes unit in the FPC 3.2.0 RTL.
Last modal result value (same as mrClose).
Deprecated for Lazarus versions after 2.0.12. Use the mrLast constant from the System.UITypes unit in the FPC 3.2.0 RTL.
String representations for modal result values.

ModalResultStr is an array of ShortString values that contains the string representations for the values in TModalResult. ModalResultStr values can be accessed using the corresponding numeric modal result value. For example:

sResult := ModalResultStr[mrNone]; // returns 'mrNone'

ModalResultStr contains the following values:

- 'mrNone'
- 'mrOk'
- 'mrCancel'
- 'mrAbort'
- 'mrRetry'
- 'mrIgnore'
- 'mrYes'
- 'mrNo'
- 'mrAll'
- 'mrNoToAll'
- 'mrYesToAll'
- 'mrClose'

ModalResultStr is used in the implementation of the GetModalResultStr routine in the controls.pp unit.

GetModalResultStr