TControl.EnableAutoSizing procedure
Enables automatic sizing for the control.
Declaration
procedure EnableAutoSizingDescription
EnableAutoSizing is used along with
DisableAutoSizing
to suspend and restore auto-sizing when the Parent, alignment, layout,
visibility, or state for the control is updated. An exception is raised if
EnableAutoSizing is called when DisableAutoSizing has not been called.
EnableAutoSizing decrements the internal counter used to track auto-sizing locks. When the counter reaches 0 (zero), the EnableAutoSizing method in the Parent control is called (when assigned). Otherwise, the DoAllAutoSize method is called to trigger the OnResize event handlers for the control.
It is not generally used in application code, but is needed by component developers.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
