Hi Nello
clGrayText isn't quite the same as the indented effect of a disabled
control. It appears to be a bug in Delphi with disabled GroupBox
captions so I may be forced to use a colour change - yuk.
Cheers,
Ross.
Nello Sestini wrote:
>the following code 'toggles' GroupBox1 between
>enabled and disabled
>
> with groupbox1
> do begin
> enabled:= not enabled;
> if enabled
> then font.color := clWindowText
> else font.color := clGrayText;
> end;
>
>hope this helps
>
>-ns
>
>
>
>----- Original Message -----
>From: "Ross Levis" <[EMAIL PROTECTED]>
>To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
>Sent: Wednesday, August 22, 2001 6:03 PM
>Subject: [DUG]: Disabled GroupBox caption not dimmed
>
>
>>I must be daft or something!
>>
>>I've successfully written a procedure to disable all the controls in a
>>GroupBox (including embeded GroupBoxes controls) so that everything
>>appears dimmed. This works fine on everything except the GroupBoxes
>>captions (which are disabled). Is it not possible to dim the caption of
>>a groupbox? I know Windows does support it as I've seen it in other
>>applications.
>>
>>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/