TW3Component = class(TW3TagObj)
Next in hierarchy is the TW3Component. This class describes a non-visual control (a.k.a. a component ). It contains a public Parent property which holds the reference to the control’s parent and a published Name property where you can set the name for the control. This name is used to access control’s properties and methods from the code.
Public Methods:
function ChildByName(const compName: String): TW3Component;
function ChildByHandle(const aHandle: THandle): TW3Component;
procedure EnumChildren(childProc: procedure (child: TW3Component));
function TopLevelParent : TW3Component;
Properties:
public
property Parent: TW3Component read FParent;
published
property Name: String read FName write setName;
• ChildByName
Locates a child component by its name.
• ChildByHandle
Locates a child component by the handle.
• EnumChildren
Calls a worker procedure (passed as a parameter) for each child component.
• TopLevelParent
Returns the top parent control (parent of a parent of a …).
|