11
Beginners / Re: Find child controls by name
« Last post by Josh on Today at 12:02:31 am »search for
findcontrol or findcomponent
containers have these
ie
form1.findcomponent
panel1.findcomponent
non tested code, to show idea
findcontrol or findcomponent
containers have these
ie
form1.findcomponent
panel1.findcomponent
non tested code, to show idea
- var c:tcontrol;
- ...
- begin
- c:=mypanel.findcontrol('mycontrol');
- if c is mycontroltype then
- begin
- with c as mycontroltype do
- begin
- ...
- end;
- end;
- end;