RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.TModalResult Type

TModalResult represents the return value from a modal dialog.

Pascal
TModalResult = Low(Integer)..High(Integer);
C++
Low(Integer)..High(Integer) TModalResult;

TModalResult represents the value returned by a modal dialog. An application can use any integer value as a modal result value. Although TModalResult can take any integer value, the following constants are defined for commonly used TModalResult values:

Constant 
Value 
Meaning 
mrNone  
0  
None. Used as a default value before the user exits.  
mrOk  
idOK  
The user exited with OK button.  
idCancel  
The user exited with the CANCEL button.  
idAbort  
The user exited with the ABORT button.  
idRetry  
The user exited with the RETRY button.  
idIgnore  
The user exited with the IGNORE button.  
mrYes  
idYes  
The user exited with the YES button.  
mrNo  
idNo  
The user exited with the NO button.  
mrAll  
mrNo + 1  
The user exited with the ALL button.  
mrAll + 1  
The user exited with the NO TO ALL button.  
mrNoToAll + 1  
The user exited with the YES TO ALL button.  
mrYesToAll + 1  
The user exited with the CLOSE button.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!