Ok I see. You have to override the default layout hints used by the TGButtonGroup by calling TGButtonGroup::SetLayoutHints() with the same layout hints as used in the TGGroupFrame example. An easy way to do this is: buttongr->SetLayoutHints(fL4, 0); fL4 is the same layout hint as the one used in guitest.C, 0 means apply same hints to all buttons. Let me know if that works. -- Fons Isidro.Gonzalez.Caballero@cern.ch wrote: > > Hi Fons, > I might not have explained myself correctly. Appart from the fact > that there were several methods not implemented, and that I left some > "TestMsgDialog" hanging (I copied the example from your nice guitest.C), > my question was more in the sense of wether TGButtonGroup wrongly places > the things inside it (wrong layout of the radio buttons). It is not clear > for me which is the purpose of this TGButtonGroup (*.bad files in my > previous mail) with respect to the TGGroupFrame (*.good files in my > previous mail). I though one of its advantages is that it handles > automatically the toggling of the buttons inside it. > > Cheers, > > Isidro > > > +---------------------------+--------------------------------+ > | Isidro González Caballero | mailto:Isidro.Gonzalez@cern.ch | > | CERN-EP / Mailbox: F28010 | http://home.cern.ch/~iglez/ | > | 1211 Geneva 23 | -o- | > | Switzerland | Tel: +41 22 76 73060, 73316 | > +---------------------------+--------------------------------+ > > On Thu, 1 Nov 2001, Fons Rademakers wrote: > > > Hi Isidro, > > > > you forgot to implement SettingDialog::DoRadio() to handle the radio > > button toggling. Also where you connected the signals to the DoRadio() > > slot you did specify the TestMsgBox class instead of SettingDialog. > > > > Attached working version. > > > > -- Fons > > > > > > > > -- > > Org: CERN, European Laboratory for Particle Physics. > > Mail: 1211 Geneve 23, Switzerland > > E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 > > WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480 -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:05 MET