[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Gets the modal result value for the button with the specified identifier.
Source position: dialogs.pp line 798
public function TCustomTaskDialog.ButtonIDToModalResult( |
const AButtonID: Integer |
):TModalResult; |
AButtonID |
|
Numeric identifier for the button with the modal result value returned in the method. |
Modal result value for the button with the specified identifier.
ButtonIDToModalResult is a TModalResult function used to get the modal result value for the button with the identifier specified in the AButtonID argument.
AButtonID contains one of the button identifier constants which correspond to the standard Buttons used on the task dialog, including:
If AButtonID is in the range of button identifiers starting at TaskDialogFirstButtonIndex, but is not found in Buttons, the value in AButtonID is used in the return value. If the identifier is valid for and found in Buttons, the return value is set to one the modal result constants like:
The return value is set to mrNone if AButtonID is not valid for or not found in the Buttons collection.
ButtonIDToModalResult is called from the DoExecute method using the button identifier returned from the Execute method in the widgetset class instance.
|
Collection with the buttons for the Task dialog. |
|
|
Lowest index value for a button identifier used on a task dialog instance. |
|
|
Collection type used to access and maintain buttons defined for a Task dialog. |
|
|
Modal result value returned when the button is clicked. |
|
|
Dummy type for the values that can be returned as a modal result. |
Version 4.0 | Generated 2025-05-03 | Home |