Skip to main content

TdxAlertWindowOptionsSize.AutoWidth Property

Specifies whether or not the width of an alert window is automatically adjusted to let this window display the entire content of its current message.

Declaration

property AutoWidth: Boolean read; write; default dxAlertWindowDefaultAutoWidth;

Property Value

Type Default
Boolean dxAlertWindowDefaultAutoWidth

Remarks

Set this property to True to enable automatic adjustment of the Width property value based on displayed message elements. The adjusted width always falls within the MinWidth/MaxWidth range. Setting the Width property or handling the alert manager’s OnMeasureMessageText event overrides the width adjustment made by the AutoWidth property.

Note

Set both the AutoWidth and AutoSizeAdjustment properties to True to let alert windows displayed on screen dynamically adjust their width based on their content. If only the AutoWidth property is set to True, the width is automatically adjusted only for alert windows that are about to be displayed on screen.

The default value of the AutoWidth property is specified by the dxAlertWindowDefaultAutoWidth global constant.

See Also