Re: Bug in TGMatrixLayout?

From: Fons Rademakers (rdm@pcsalo.cern.ch)
Date: Fri Sep 04 1998 - 20:12:48 MEST


Hi Mathieu,

   thanks for the mod. I'll add it to the development version.

Could you mail me your little example using the TGMatrixLayout so
I can add it as example to guitest.cxx.

Cheers, Fons.


> 
> 
> Hello ROOTers
> 
>   In opposite to TGVerticalLayout and TGHorizontalLayout, TGMatrixLayout
> does not take into account the border width of the parent frame.
> This causes it to look very bad when used with TGGroupFrame (The title of
> the Frame is overlapped by the matrix)
> 
> In TGMatrixLayout::Layout, I would just suggest to change 
> 
>   Int_t x = fSep, y = fSep;  
> 
> by
>   
>   Int_t    bw = fMain->GetBorderWidth(); 
>   Int_t x = fSep + bw, y = fSep + bw;                           
> 
>  I made a derived class with this modification, and it looks much better.
> 
> 
> ------------------------------------------------------
> 
> 
> Mathieu de Naurois
> LPNHE Ecole Polytechnique
> denauroi@polhp1.in2p3.fr
> 
> 
> 


-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland          Phone: +41 22 7679248
E-Mail: Fons.Rademakers@cern.ch              Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:37 MET