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

TPageControl.UpdateDockCaption

Updates page captions to reflect the captions for docked clients controls.

Declaration

Source position: comctrls.pp line 595

protected procedure TPageControl.UpdateDockCaption(

  Exclude: TControl = Nil

); override;

Arguments

Exclude

  

Not used in TPageControl.

Description

UpdateDockCaption is an overridden method in TPageControl which implements the method defined in the TWinControl ancestor. It ensures that the Caption for each of the Pages (TTabSheet) is updated with the Caption from the first child control on each page.

UpdateDockCaption is called when the control has an assigned HostDockSite, and either the list of docked clients has changed or one of their captions has changed.

In TPageControl, the Exclude argument is not used.

Version info

Added in LCL version 4.0.

See also

TPageControl.Pages

  

Provides indexed access to the pages (tab sheets) on the page control.

TTabSheet.Caption

  

The text displayed for the control.

#lcl.controls.TWinControl.UpdateDockCaption

  

Updates the Caption to reflect the names for the docked clients.

#lcl.controls.TWinControl.Controls

  

Provides indexed access to the child controls for the class instance.

#lcl.controls.TControl.HostDockSite

  

The host site (TWinControl) into which this control is docked. Nil if not docked.

#lcl.controls.TControl.Text

  

String with the text or caption for the control.


Version 4.0 Generated 2025-05-03 Home