Sign in Join
FPDoc Onlineexperiment

TDialogButton class

In unit InterfaceBase

Implements a standard dialog button.

Declaration

pascal
TDialogButton = class(TCollectionItem)

Inheritance

  1. TDialogButton
  2. TCollectionItem
  3. TPersistent
  4. TObject

Description

TDialogButton is a TCollectionItem descendant which implements a standard dialog button.

TDialogButton is the type created and stored in the TDialogButtonsCollection. An overridden method is provided to use the Caption as the DisplayName for the collection item.

TDialogButton contains properties used to control how a dialog button button is displayed and used.

Caption contains the text displayed on the button face, and can define an accelerator key by prefixing a character with an Ampersand ( &).

Cancels indicate if the dialog button is used as the Cancel button in the Collection.

Default indicates if the dialog button is the default button in the Collection.

See also

Properties

CaptionpublicValue displayed on the button face.
CancelpublicTrue if the button is the Cancel button.
DefaultpublicTrue if the button is the default button.
ModalResultpublicThe modal result value returned when the button is clicked.

Methods

GetDisplayNameprotectedGets the value for the DisplayName property.
SetCaptionprotectedSets the value for the Caption property.
CreatepublicConstructor for the class instance.

Inherited

From TCollectionItem (11)

Changed Collection Destroy DisplayName GetNamePath GetOwner ID Index SetCollection SetDisplayName SetIndex

From TPersistent (6)

Assign AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers

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.