Re: [ROOT] kFixedSize ignored in TGMainFrame

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Nov 08 2001 - 12:32:49 MET


Hi Thomas,

  to fix the size of a top level window, i.e. TGMainFrame, TGTransientFrame
you have to use TGMainFrame::SetWMSize(), this call tells the Window Manager
that it should not resize the window. The kFixedSize works only for embedded
frames like TGCompositeFrame and derived classes (in combination with the
layout hints).

Cheers, Fons.



Thomas Bretz wrote:
> 
> Hi rootters,
> 
> I have a class which is derrived from TGMainFrame. In the constructor of
> TGMainFrame I specified kVerticalFrame|kFixedSize. But the Frame was
> still resizable. It my understatement of this flag wrong, or is it
> simply ignored by TGMainFrame?
> 
> regards,
> 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 7679480



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