[Overview][Constants][Types][Index] Reference for unit 'UITypes' (#lazutils)

TModalResult

Alias to the TModalResult type in the FPC RTL.

Declaration

Source position: uitypes.pas line 72

type TModalResult = (Integer)..(Integer);

Description

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:

Remark: 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.

See also

MessageDlg

MessageDlgPos

MessageDlgPosHelp

CreateMessageDialog

QuestionDlg

LazMessageDlg


Version 3.2 Generated 2024-02-25 Home