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

TdxAlertWindowManager.OnMeasureMessageText Event

In This Article

Enables you to dynamically adjust the size of an alert window‘s message text area.

#Declaration

Delphi
property OnMeasureMessageText: TdxAlertWindowManagerMeasureEvent read; write;

#Remarks

Handle this event when you enable automatic adjustments via the OptionsSize.AutoHeight and/or OptionsSize.AutoWidth properties and want to accomplish one of the following:

  • Override the size calculated using the automatic adjustments.

  • Provide sufficient space for a message text when custom painting alert window messages via the OnCustomDrawMessageText event.

Sender specifies the alert window manager.

AAlertWindow specifies the alert window whose message text area is to be sized.

Use AWidth and AHeight to specify the new width and height of the alert window’s message text area. These parameters are initialized with values calculated based on the enabled automatic adjustments, displayed message elements, and specified size limits.

Note

The resulting message area size may differ from the specified AWidth and AHeight values because the alert window manager always maintains the window size so that the window displays all its elements and conforms to size limits.

See Also