Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxAlertWindowOptionsCaptionButtons.CaptionButtons Property

Specifies the visibility of alert window caption buttons.

#Declaration

Delphi
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.

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