[ROOT] TGroupFrame with kFixedWidth AND kFixedHeight

From: cstrato@EUnet.at
Date: Tue Nov 06 2001 - 23:37:31 MET


Dear Fons

I would like to have a TGroupFrame with kFixedWidth AND kFixedHeight.
When I add kFixedWidth only, the width is fixed, however, adding
kFixedHeight
seems to have no effect:

   fFT1 = new TGCompositeFrame(fFrame, 200, 200, kVerticalFrame);
   vHints = new TGLayoutHints(kLHintsTop | kLHintsExpandX |
kLHintsExpandY);
   fTrash->Add(vHints);
   fFrame->AddFrame(fFT1, vHints);
   fFT1->Resize(300,200);

   vHints = new TGLayoutHints(kLHintsTop | kFixedWidth | kFixedHeight);
   fTrash->Add(vHints);
   fFT1G1 = new TGGroupFrame(fFT1, "Group frame G1", kFixedSize |
kVerticalFrame);
//   fFT1G1 = new TGGroupFrame(fFT1, "Group frame G1", kFixedWidth |
kVerticalFrame);
   fFT1->AddFrame(fFT1G1, vHints);
   fFT1G1->Resize(300,80);

Can you tell me what I am doing wrong?

Thank you in advance.
Best regards
Christian
----------------------------------
C.h.r.i.s.t.i.a.n  S.t.r.a.t.o.w.a
V.i.e.n.n.a,  A.u.s.t.r.i.a



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:06 MET