TDialogButtons class
Collection used to store TDialogButton instances.
Declaration
TDialogButtons = class(TCollection)Inheritance
- TDialogButtons
- TCollection
- TPersistent
- TObject
Description
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.
See also
Properties
DefaultButton | public | The default button for the dialog. |
CancelButton | public | The cancel button for the dialog. |
Items | public | Provides indexed access to the dialog buttons in the collection. |
Methods
GetItem | protected | Gets the value for the indexed Items property. |
SetCancelButton | protected | Sets the value for the CancelButton property. |
SetDefaultButton | protected | Sets the value for the DefaultButton property. |
SetItem | protected | Sets the value in the indexed Items property. |
Destroy | public | Destroys the collection and frees all the objects it manages. |
Add | public | Adds a new button instance to the Items in the collection. |
FindButton | public | Finds the button associated with (one of) the given modal result values. |
Fields
FCancelButton | protected | The cancel button for the dialog. |
FDefaultButton | protected | The default button for the dialog. |
Inherited
From TCollection (26)
Assign BeginUpdate Changed Clear Count Create Delete EndUpdate Exchange FindItemID GetAttr GetAttrCount GetEnumerator GetItemAttr GetNamePath Insert ItemClass Move Notify Owner PropName SetItemName SetPropName Sort Update UpdateCount
From TPersistent (6)
AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers GetOwner
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
