Skip to main content

TdxAlertWindowOptionsCaptionButtons.CaptionButtons Property

Specifies the visibility of alert window caption buttons.

Declaration

property CaptionButtons: TdxAlertWindowCaptionButtons read; write; default dxAlertWindowDefaultCaptionButtons;

Property Value

Type Default
TdxAlertWindowCaptionButtons dxAlertWindowDefaultCaptionButtons

Remarks

By default, this property is initialized to show all caption buttons in an alert window. The following code snippet demonstrates how to show only the Pin and Close buttons.

var
  AAlertWindow: TdxAlertWindow;
// ...
AAlertWindow.OptionsCaptionButtons.CaptionButtons := [awcbPin, awcbClose];

Note

The Dropdown button is disabled unless it is associated with a popup menu via the PopupMenu property.

The default value of the CaptionButtons property is specified by the dxAlertWindowDefaultCaptionButtons global constant.

See Also