Skip to main content
A newer version of this page is available. .

TdxAlertWindowButtons.Items Property

Provides zero-based indexed access to the custom buttons stored in the current collection.

Declaration

property Items[Index: Integer]: TdxAlertWindowButton read; write; default;

Property Value

Type
TdxAlertWindowButton

Remarks

The following code shows how to access the first custom button in a collection and hide this button.

var
  AAlertWindow: TdxAlertWindow;
// ...
// The following lines are equivalent
  AAlertWindow.OptionsButtons.Buttons[0].Visible := False;
  AAlertWindow.OptionsButtons.Buttons.Items[0].Visible := False;

To determine the number of custom buttons in the collection, use its Count property.

See Also