Vcl.ComCtrls.TAnimate.CanAutoSize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

virtual bool __fastcall CanAutoSize(int &NewWidth, int &NewHeight);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TAnimate

Description

Indicates how the control can be resized.

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.

See Also