Hi Andreas, You should use: fCheck1->SetState(kButtonDown); to have button "checked" when the GUI starts. Best regards, Ilka Andreas WILDAUER wrote: > Hi Rooters, > > I started to use the GUI classes of root, and its really fun to use them. > Unfortunately, it's rather hard to find out things, so one question I have: > > how can I force a TGCheckButton to be "checked" when the GUI starts? > > I tried like this: > fCheck1 = new TGCheckButton(this, "Level 2 Calo", 3); > fCheck1->SetState(kButtonUp); > kButtonEngaged doesn't work either > > which EButtonState do I have to use? > > Thanks > Andi > > ======================================================================= > Andreas Wildauer > CERN/EP ATC, mailbox E25310, CH-1211 Geneva 23, Switzerland > office 40 3-D06 > email Andreas.Wildauer@cern.ch > tel +41 22 76 71779 > =======================================================================
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET