[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'InterfaceBase' (#lcl)

TDialogButtons

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Collection used to store TDialogButton instances.

Declaration

Source position: interfacebase.pp line 101

type TDialogButtons = class(TCollection)

protected

  FCancelButton: TDialogButton;

  

The cancel button for the dialog.

  FDefaultButton: TDialogButton;

  

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;

Inheritance

TDialogButtons

  

Collection used to store TDialogButton instances.

|

TCollection

|

TPersistent,IFPObserved

|

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

TDialogButtons.Items

  

Provides indexed access to the dialog buttons in the collection.

TDialogButtons.Add

  

Adds a new button instance to the Items in the collection.

TDialogButtons.CancelButton

  

The cancel button for the dialog.

TDialogButtons.DefaultButton

  

The default button for the dialog.

TDialogButtons.FindButton

  

Finds the button associated with (one of) the given modal result values.

TWidgetSet.AskUser

  

Displays a dialog box with the specified values, and returns the modal result.

TCollection


Version 3.2 Generated 2024-02-25 Home