Re: [ROOT] Problems with TGHorizontalFrame

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Sep 14 2000 - 19:04:55 MEST


Hi Thomas,

   could you send me the code defining the layout. What you describe typically
happens when you set the wrong parent for one of the widgets or frames.

Cheers, Fons



Thomas Gotz wrote:
> 
> Hey rooters
> 
> My aim is to create a TGMainFrame with the following contents:
> 
> First of all there has to be a Menubar at the top of the window. This is
> already done by me.
> At the bottom there has to be a horizontal Textbutton, for which I also
> used the TG LayoutHints in order to expand it to the entire width of the
> window.
> 
> The space in between has to be filled with a set of Textbuttons, which
> has to be ordered in the following way:
> 
> In each line there has to appear a certain number of textbuttons, which
> I added to a TGHorizontalFrame.
> This I did for each line, until all of the Textbuttons are done.
> After filling one HorizontalFrame I added this guy to the TGMainFrame
> within the AddFrame() member function.
> 
> The problem is right now, that all the TGHorizontalFrames are superposed
> with the MenuBar.
> How can I force these Horizontalframes to occur one by one starting
> under the MenuBar.
> 
> Thanks a lot for your help
> 
> Thomas

-- 
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 7677910



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:32 MET