Re: Bug in TGMatrixLayout?

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Sat Sep 12 1998 - 19:30:27 MEST


Hi Mathieu,

   you example showed some other bugs in TGMatrixLayout (i.e. DefaultSize()
was calculated wrong and some other small problems). These have all been
fixed now.

Cheers, Fons.


Mathieu de Naurois wrote:
> 
> 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