ModalResult

E1014692

ModalResult is a property in Delphi and similar frameworks that indicates how a modal dialog was closed, typically by specifying which button or user action ended the dialog.

All labels observed (1)

Label Occurrences
ModalResult canonical 1

How this entity was disambiguated

Statements (42)

Predicate Object
instanceOf dialog result code ⓘ
property ⓘ
associatedWith mrAbort ⓘ
mrAll ⓘ
mrCancel ⓘ
mrClose ⓘ
mrIgnore ⓘ
mrNo ⓘ
mrNoToAll ⓘ
mrOk ⓘ
mrRetry ⓘ
mrYes ⓘ
mrYesToAll ⓘ
backedBy integer constants like mrOk = 1, mrCancel = 2, etc. ⓘ
belongsTo TForm ⓘ
modal dialog forms ⓘ
category GUI programming concept ⓘ
convention 0 means dialog still open or no result ⓘ
non-zero values indicate a specific dialog result ⓘ
dataType Integer ⓘ
definedBy System.UITypes.TModalResult in modern Delphi ⓘ
influenced similar dialog result patterns in other Pascal-based frameworks ⓘ
lifecycle value is returned by ShowModal as function result ⓘ
origin Borland Delphi ⓘ
platform Windows (VCL) ⓘ
linked to: Windows VCL

cross-platform (FMX) ⓘ
purpose identify which button or user action ended the dialog ⓘ
indicate how a modal dialog was closed ⓘ
readBy calling code after ShowModal returns ⓘ
relatedTo ShowModal ⓘ
setBy button click handlers ⓘ
code in event handlers ⓘ
typicalUsage assigned in a button OnClick event ⓘ
checked in code after ShowModal returns ⓘ
usedFor controlling program flow after a dialog closes ⓘ
determining user choice in confirmation dialogs ⓘ
handling OK and Cancel logic ⓘ
handling Yes/No decisions ⓘ
usedIn Delphi ⓘ
FMX ⓘ
Object Pascal frameworks ⓘ
VCL ⓘ

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

TButton → hasProperty → ModalResult ⓘ