[ROOT] Problem with TGMatrixLayout and other questions

From: Edward Chen (edward@SLAC.stanford.edu)
Date: Tue Aug 26 2003 - 08:24:07 MEST


Hi - I'm having a problem with TGMatrixLayout (in 3.04/02):

   fMain   = new TGMainFrame(p, w, h);
   //   fMain->SetLayoutManager(new TGHorizontalLayout(fMain));
   fMain->SetLayoutManager(new TGMatrixLayout(fMain,0,2,10));

   fF6 = new TGGroupFrame(fMain, "Cut options", kVerticalFrame);
   fMain->AddFrame(fF6);
   fF6->SetLayoutManager(new TGMatrixLayout(fF6, 0, 5, 10));
   ...
   fF7 = new TGGroupFrame(fMain, "Actions", kVerticalFrame);
   fMain->AddFrame(fF7);
   ...

Using TGHorizontalLayout for fMain, I get both frames fF6 and fF7.
However, switching to the TGMatrixLayout, I get only get fF6.

Another question is - for fF6, when I specify kVerticalFrame in the
constructor, is that really necessary given that I use a MatrixLayout?

Also - is there a relatively simple way to set up a frame with three
frames inside such that it looks like:

[][]
[  ]

without grouping the top two together?

Thanks for any help.

-Ed



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