[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Collection used to store TDialogButton instances.
Source position: interfacebase.pp line 101
type TDialogButtons = class(TCollection) |
||
protected |
||
|
The cancel button for the dialog. |
|
|
The default button for the dialog. |
|
function GetItem(); |
|
Gets the value for the indexed Items property. |
procedure SetCancelButton(); virtual; |
|
Sets the value for the CancelButton property. |
procedure SetDefaultButton(); virtual; |
|
Sets the value for the DefaultButton property. |
procedure SetItem(); |
|
Sets the value in the indexed Items property. |
public |
||
destructor Destroy; override; |
||
function Add; |
|
Adds a new button instance to the Items in the collection. |
function FindButton(); |
|
Finds the button associated with (one of) the given modal result values. |
property DefaultButton: TDialogButton; [rw] |
|
The default button for the dialog. |
property CancelButton: TDialogButton; [rw] |
|
The cancel button for the dialog. |
property Items []: TDialogButton; default; [rw] |
|
Provides indexed access to the dialog buttons in the collection. |
end; |
|
Collection used to store TDialogButton instances. |
|
| | ||
| | ||
| | ||
TDialogButtons is a TCollection descendant used to create and maintain the TDialogButton instances in the Items for the collection.
TDialogButtons re-implements methods like GetItem, SetItem, and Add to use the TDialogButton class type when adding or accessing the Items in the collection.
The FindButton method can be used to find a dialog button in the collection which has specific modal result value(s).
Use the DefaultButton and CancelButton properties to access the button instances used for the corresponding purpose in the collection.
TDialogButtons is the type passed as a parameter to the TWidgetSet.AskUser method.
|
Provides indexed access to the dialog buttons in the collection. |
|
|
Adds a new button instance to the Items in the collection. |
|
|
The cancel button for the dialog. |
|
|
The default button for the dialog. |
|
|
Finds the button associated with (one of) the given modal result values. |
|
|
Displays a dialog box with the specified values, and returns the modal result. |
|
Version 3.2 | Generated 2024-02-25 | Home |