Cheers, I will give it a try
> -----Original Message-----
> From: Carl Reynolds [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 11, 1999 08:49
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Detecting Componets
>
> Hi Jeremy
>
> Not sure what a Frame component is, but if it's descended from a
> TWinControl it will have a ControlCount and Controls property, so you can
> do something like this:
>
> with Frame1 do begin
> for i := 0 to ControlCount - 1 do begin
> if Controls[i] is TControl then with TControl(Controls[i])
> do begin
> Font.Color := clBtnFace;
> ...
> end
> else if Controls[i] is <etc> <etc>
> end;
> end;
> end;
>
> Alternatively, all components on your form, whether in or out of your
> frame, will be in the form's Components property, so you can do a similar
> (less efficient) thing by iterating through Form1.Components from 0 to
> ComponentCount - 1.
>
> Cheers,
>
> Carl Reynolds Ph: +64-9-4154790
> CJN Technologies Ltd. Fax: +64-9-4154791
> [EMAIL PROTECTED] DDI: +64-9-4154795
> PO Box 302-278, North Harbour, Auckland, New Zealand
> 12 Piermark Drive, North Harbour Estate, Auckland, NZ
> Visit our website at http://www.cjntech.co.nz/
>
> -----Original Message-----
> From: Jeremy Coulter [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 10, 1999 9:25 PM
> To: Multiple recipients of list delphi
> Subject: [DUG]: Detecting Componets
>
> Hi All.
>
> Just wondering, how do the following :-
>
> I have a Frame componet on a form, and then I have some components on that
> frame.
> How do i detect what components are on it ? and then do something, like
> change the font colour or something equally simple.....????
>
> I have been looking in the Help file, but not quite sure what to
> searchfor, therefore had NO success.
>
> Cheers,
>
>
> Jeremy Coulter (chief software engineer)
> Visual Software Solutions
> Christchurch, New Zealand
> PH 03-3521595
> FAX 03-3521596
> MOBILE 021-2150435
> www.vss.co.nz
>
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz