RAD Studio VCL Reference
TAnimate.CanAutoSize Method

Indicates how the control can be resized.

function CanAutoSize(var NewWidth: Integer; var NewHeight: Integer): Boolean; override;
virtual __fastcall Boolean CanAutoSize(int NewWidth, int NewHeight);

CanAutoSize is called automatically when the AutoSize property is true and an attempt is made to resize the control. It allows the animation control to adjust to the size of animation frames. 

When CanAutoSize is called, the NewWidth and NewHeight parameters indicate the proposed new dimensions of the control. If the Open property is true, CanAutoSize adjusts these values so that they reflect the dimensions of the AVI video images and returns true. If the animation control is not Open, CanAutoSize returns false. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!