Back to Devexpress

TdxAlertWindowOptionsCaptionButtons.CaptionButtons Property

vcl-dxalertwindow-dot-tdxalertwindowoptionscaptionbuttons-e6bf2f95.md

latest1.7 KB
Original Source

TdxAlertWindowOptionsCaptionButtons.CaptionButtons Property

Specifies the visibility of alert window caption buttons.

Declaration

delphi
property CaptionButtons: TdxAlertWindowCaptionButtons read; write; default dxAlertWindowDefaultCaptionButtons;

Property Value

TypeDefault
TdxAlertWindowCaptionButtonsdxAlertWindowDefaultCaptionButtons

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.

delphi
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

TdxAlertWindow.Close

TdxAlertWindow.Pinned

TdxAlertWindowOptionsCaptionButtons.PopupMenu

TdxAlertWindowOptionsCaptionButtons Class

TdxAlertWindowOptionsCaptionButtons Members

dxAlertWindow Unit