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];
You can handle an alert window manager’s OnCaptionButtonClick event to respond to caption button clicks. To customize default hints displayed for caption buttons, use the sdxAlertWindowDropdown, sdxAlertWindowPin, and sdxAlertWindowClose resource strings. To enable hints in an alert window, set its ShowHint property to True.
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.