Re: [ROOT] "hiding" or un-enabling widgets

From: Ilka Antcheva (Ilka.Antcheva@cern.ch)
Date: Thu Aug 07 2003 - 12:27:09 MEST


Hi Edward,

You can use:
fCheck1[i]->SetState(kButtonDisabled);
that will disable the button label and the button
selection in case the button was selected.

Best Regards, Ilka

p.s. I got an error sending this message - Sorry
if you receive it second time.

Edward Moyse wrote:

> Hi,
>
> I have a TGCheckButton that I'd like to "gray out" or hide.
>
> I tried using:
> fCheck1[i]->SetFlags(kWidgetIsEnabled);
>
> but the SetFlags() method is protected.
>
> Does anyone know the correct way of achieving this?
>
> Thanks!
>
> Edward Moyse
>
>



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET