Solved. Should be using ControlCount Ross. Ross Levis wrote: > Just going back to this one (quickly). > > I attempted to write a procedure that automatically iterates > through the controls contained in a GroupBox. However, > ComponentCount for my GroupBox is 0 when I actually have 7. > Does this property not work for GroupBoxes? > > Cheers, > Ross. > > Myles Penlington wrote: > > > It depends on what you disable. If you disable a panel, then > > the panel is > > disabled and all the controls on it also, however all the > > controls DO not > > appear dimmed. If you want them to appear dimmed, you need > to iterate > > through all the controls and make them disabled yourself. > > This then makes > > them appear dimmed. > > > > Myles. > > > > > > -----Original Message----- > > From: Ross Levis [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, 18 August 2001 9:19 p.m. > > To: Multiple recipients of list delphi > > Subject: [DUG]: Shadowed Controls > > > > > > Can someone please mention how to change the text that appears in a > > disabled GroupBox (or any other control) to show as shadowed. > > The help > > says that disabled controls appear dimmed but apart from the > > text in an > > Edit, I've not seen it. I can modify the Font property when it's > > disabled but it doesn't have the same effect. > > > > Cheers, > > Ross. > > > > -------------------------------------------------------------- > > ------------- > > New Zealand Delphi Users group - Delphi List - > > [EMAIL PROTECTED] > > Website: http://www.delphi.org.nz > > To UnSub, send email to: [EMAIL PROTECTED] > > with body of "unsubscribe delphi" > > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > > -------------------------------------------------------------- > > ------------- > > New Zealand Delphi Users group - Delphi List - > > [EMAIL PROTECTED] > > Website: http://www.delphi.org.nz > > To UnSub, send email to: [EMAIL PROTECTED] > > with body of "unsubscribe delphi" > > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > > > -------------------------------------------------------------- > ------------- > New Zealand Delphi Users group - Delphi List - > [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/