Sign in Join
FPDoc Onlineexperiment

TDialogButtons class

In unit InterfaceBase

Collection used to store TDialogButton instances.

Declaration

pascal
TDialogButtons = class(TCollection)

Inheritance

  1. TDialogButtons
  2. TCollection
  3. TPersistent
  4. 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

DefaultButtonpublicThe default button for the dialog.
CancelButtonpublicThe cancel button for the dialog.
ItemspublicProvides indexed access to the dialog buttons in the collection.

Methods

GetItemprotectedGets the value for the indexed Items property.
SetCancelButtonprotectedSets the value for the CancelButton property.
SetDefaultButtonprotectedSets the value for the DefaultButton property.
SetItemprotectedSets the value in the indexed Items property.
DestroypublicDestroys the collection and frees all the objects it manages.
AddpublicAdds a new button instance to the Items in the collection.
FindButtonpublicFinds the button associated with (one of) the given modal result values.

Fields

FCancelButtonprotectedThe cancel button for the dialog.
FDefaultButtonprotectedThe 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.