Links
EControl Form Designer Pro
TCustomBtnPanel.CanAutoSize Method

Specifies whether the TCustomBtnPanel sizes itself automatically to accommodate its contents.

function CanAutoSize(var NewWidth: Integer; var NewHeight: Integer): Boolean; override;

Specifies whether the TCustomBtnPanel sizes itself automatically to accommodate its contents. This is setter for the AutoSize property. 

 

CanAutoSize is called automatically when the AutoSize property is true and an attempt is made to resize the control. 

It resize control depending on RowCount, ButtonCount and Orientation properties. 

 

Method always returns True and the NewWidth and NewHeight parameters indicate the proposed new dimensions of the control.

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