TdxAlertWindowManager.OnMeasureMessageText Event
Enables you to dynamically adjust the size of an alert window‘s message text area.
Declaration
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.