TCustomControlBar.RemoveControl procedure
Removes the band with the specified control.
Declaration
procedure RemoveControl(AControl: TControl); overrideArguments
AControl | Control removed from the control bar. |
Description
RemoveControl is an overridden method in
TCustomControlBar. It performs additional actions when the Parent
for the control in AControl has been set to Nil.
RemoveControl ensures that the TCtrlBand instance for the control is removed from the internal TCtrlBands container. When found, the Delete method in the list is called to remove the band.
RemoveControl calls the inherited method to remove the control specified in AControl.
If the control bar is not being freed, the Invalidate method is called to force the control to be redrawn.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
