Sign in Join
FPDoc Onlineexperiment

TWinControl.FindChildControl function

Member of TWinControlpublicIn unit Controls

Finds a child control with the specified name.

Declaration

pascal
function FindChildControl(const ControlName: string): TControl

Arguments

ControlName

The name of the control to find (case insensitive).

Function result

Control with the given name or nil.

Description

Only finds direct children, no recursion. The name is case insensitive.

Note that unique names are not guaranteed for components created in code (if they have different owners). Therefore, only the first matching control will be returned.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.