[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Updates the size and extent of the control and ClientRect.
Source position: controls.pp line 2023
protected procedure TWinControl.DoSetBounds( |
ALeft: Integer; |
ATop: Integer; |
AWidth: Integer; |
AHeight: Integer |
); override; |
Changing the ClientRect here, to the most probable size, reduces unneccessary resizes.
Normally the clientwidth/clientheight is adjusted automatically by the widget, but it is up to widget when this will be done. The gtk for example just puts resize requests into a queue. The LCL would resize the child components just after this procedure due to the clientrect. On complex forms with lots of nested controls, this would result in thousands of resizes.
|
Internal function to set the control's bounds (Left, Top, Height, Width). |
lazarus-ccr.sourceforge.net |