Sign in Join
FPDoc Onlineexperiment

TWinControl.CMBorderChanged procedure

Member of TWinControlprotectedIn unit Controls

Handles a CM_BORDERCHANGED message received for the control.

Declaration

pascal
procedure CMBorderChanged(var Message: TLMessage); message

Description

CMBorderChanged ensures that the size and client rectangle are adjusted when a border is added to or removed from the control. It calls DoAdjustClientRectChange and AdjustSize to update values in the control. It calls Invalidate to force the control to be redrawn with the new size and client rectangle.

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