Back to Devexpress

TdxAlertWindowOptionsSize.Width Property

vcl-dxalertwindow-dot-tdxalertwindowoptionssize-cc580adb.md

latest1.9 KB
Original Source

TdxAlertWindowOptionsSize.Width Property

Specifies an alert window‘s width, in pixels.

Declaration

delphi
property Width: Integer read; write; default dxAlertWindowDefaultMinWidth;

Property Value

TypeDefault
IntegerdxAlertWindowDefaultMinWidth

Remarks

The Width property value cannot fall outside the MinWidth/MaxWidth range.

You can enable the automatic width adjustment based on displayed message elements via the AutoWidth property. In this instance, manual width adjustments made via the Width property are ignored. To override the width adjustment made by AutoWidth, handle an alert manager’s OnMeasureMessageText event.

To allow alert windows displayed on screen to dynamically adjust their size based on the message content, set the AutoSizeAdjustment property to True.

The default value of the Width property is specified by the dxAlertWindowDefaultMinWidth global constant.

See Also

TdxAlertWindowOptionsSize.Height

TdxAlertWindowOptionsSize Class

TdxAlertWindowOptionsSize Members

dxAlertWindow Unit