It seems to be a limitation of all of these types of controls.

We have a slightly different situation where we don't use the Enabled
property unless we really have to. Instead we set ReadOnly to true and
change the background color or font colour of the control. This makes it
possible for users to copy the contents of a "disabled" edit control.

To do this we have two procedures, EnableControl and DisableControl
which take a control as a parameter and sets all of the properties that
we want to set when disableing a particular component.

If you want to draw the title as disables (like labels do) you would
probably have to write some sort of owner draw procedure.

Stacey

> -----Original Message-----
> From: Chris Milham [mailto:cmilham@;medtech-software.com] 
> Sent: Wednesday, 23 October 2002 4:31 p.m.
> To: Multiple recipients of list delphi
> Subject: [DUG]: Why don't group boxes "dim" when disabled?
> 
> 
> Hi all,
> 
> I'm using D5 and have just discovered that TGroupBox controls 
> don't "dim" or gray out when they are disabled. I want the 
> captions of my group boxes to be dimmed when they're disabled 
> rather than just staying black. Is this a bug or a 
> limitation? Any ideas? I'd rather not use a 3rd party control 
> that does this. A hack for stdctrls might be OK :). Thanks,
> 
> Chris
> 
> ---
> 
> Chris Milham
> Software Developer
> MedTech Software Ltd.
> Level M, 48 Market Place, Viaduct Basin, Auckland
> Ph. +649 3559666 Extn. 714, Fax +649 3774231
> Email: [EMAIL PROTECTED]
> Web: http://www.medtech.co.nz
> 
> 
> This email and any attachments are intended only for the 
> person to whom it is addressed and may contain privileged, 
> proprietary, or other data protected from disclosure under 
> applicable law. If you are not the addressee or the person 
> responsible for delivering this to the addressee you are 
> hereby notified that reading, copying or distributing this 
> transmission is prohibited. If you have received this email 
> in error, please telephone us immediately and remove all 
> copies of it from your system. Thank you for your co-operation. 
> 
>  <<Chris Milham.vcf>> 
> 
---------------------------------------------------------------------------
    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/

Reply via email to