TGCheckButton disabled is not grey

I’ve got new problem
my code is here:

TGCheckButton *f=new TGCheckButton(fParentFrame,"",kButton);
f->SetState(kButtonDisabled);
fParentFrame->AddFrame(f);

problem is that the checkbutton is disabled but does not become grey.
is it expected to be so and i should change the color somehow with extra line of code?

many thanks

Hi Igor,

Your observation is correct - that is what the current code does. I will fix it in cvs head. What is your version of root? I could prepare a patch for you against that version.

Cheers, Ilka

[quote=“antcheva”]Hi Igor,

Your observation is correct - that is what the current code does. I will fix it in cvs head. What is your version of root? I could prepare a patch for you against that version.

Cheers, Ilka[/quote]

I am using root 5.08.00.
thanks

Hi Igor,

The diff file against the TGButton.cxx in root version 5.08b is attached. The same fix was uploaded in cvs head too.

Cheers, Ilka
button.diff.txt (1.95 KB)

[quote=“antcheva”]Hi Igor,

The diff file against the TGButton.cxx in root version 5.08b is attached. The same fix was uploaded in cvs head too.

Cheers, Ilka[/quote]

great!
many thanks
Igor