[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)


Allows to automatically adjust the size of the control, according to its content.


Source position: controls.pp line 1544

public property TControl.AutoSize: Boolean
  read FAutoSize
  write SetAutoSize
  default false;


The effect depends on the concrete control type. For example a label or button can become bigger or smaller to accommodate a longer or shorter caption.

Default is false, ie no auto-sizing

See also

Autosize topic


AutoSize - boolean property that permits the size of a control to be adjusted automatically

This page is hosted on Get Lazarus Code and Component Repository at SourceForge.net. Fast, secure and Free Open Source software downloads