Sign in Join
FPDoc Onlineexperiment

TControl.SetBoundsKeepBase procedure

Member of TControlpublicIn unit Controls

Set the bounds, keeping the base values.

Declaration

pascal
procedure SetBoundsKeepBase(aLeft: Integer; aTop: Integer; 
 aWidth: Integer; aHeight: Integer); virtual

Description

SetBoundsKeepBase is a procedure used to set the bounds for a Control to the specified values without affecting the bounds in a Parent control.

SetBoundsKeepBase calls the ChangeBounds method to update the sized and position for the control to the specified values. If you use this in a custom control, disable LCL auto-sizing for this control prior to calling the method.

SetBoundsKeepBase is used in the implementation for several methods, including:

  • WMSize
  • WMMove
  • WMWindowPosChanged
  • DoAutoSize
  • DoAutoAdjustLayout
  • DoUndock
  • Loaded

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.