AutoSize property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

bool AutoSize

Delphi Syntax

AutoSize: Boolean

Overview

Refer to Displaying an Image.

Remarks

(Persistent property, available at design time) Automatically sizes the Main Control to the size of the bitmap, if possible.

If the bitmap is larger than the current window, the control is resized to fit the image, regardless of the size of its container.

This property is effective when loading a bitmap and when taking any action (such as rotating a bitmap) that changes the dimensions of the bitmap.

Setting

Description

TRUE

Automatically size the LEAD control to the size of the bitmap, if possible.

FALSE

The size of the bitmap does not affect the size of the LEAD control.

See Also

Elements:

AutoRepaint property, AutoSetRects property, PaintSizeMode property, PaintZoomFactor property, AutoScroll property

Topics:

Raster Images: Displaying Images