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.
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
NERFINISHED
ⓘ
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 NERFINISHED ⓘ |
| platform |
Windows (VCL)
NERFINISHED
ⓘ
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
NERFINISHED
ⓘ
FMX NERFINISHED ⓘ Object Pascal frameworks ⓘ VCL NERFINISHED ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.