Links
EControl Syntax Editor SDK
TSingleButtonSyntaxEdit.OnConstrainedResize Property

Adjust resize constraints.

property OnConstrainedResize;

Use OnConstrainedResize to adjust a control’s constraints when an attempt is made to resize it. Upon entry to the OnConstrainedResize event handler, the parameters of the event handler are set to the corresponding properties of the control’s Constraints object. The event handler can adjust those values before they are applied to the new height and width that is being applied to the control. (The CanAutoSize method or an OnCanResize event handler may already have adjusted this new height and width). 

 

On exit from the OnConstrainedResize event handler, the constraints are applied to the attempted new height and width. Once the constraints are applied, the control’s height and width are changed. After the control’s height and width change, an OnResize event occurs to allow any final adjustments or responses.

The OnConstrainedResize handler is called immediately after the OnCanResize handler.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!