Hi Laurent, in that case make sure the embedded canvas widget does not get resized when changing the size of the main frame. This can be done using the correct TGLayoutHints (e.g. don't specify the options kLHintsExpandX and kLHintsExpandY). Cheers, Fons. > Onuchin Valeriy wrote: > > > > > > > > Hi Rooters, > > > > > > Is there a way to prevent the user from resizing/moving a TPad or a > > > TCanvas ? > > > > > > > Hi Laurent! > > The example of fixed-size TCanvas you can find > > at $ROOTSYS/test/Tetris.cxx > > > > just look at void Tetris::SetFixedSize() method > > I'm afraid this only works with top level windows. > What I have is a TRootEmbeddedCanvas with some TPad in it. I would like > both the TCanvas from > the TRootEmbeddedCanvas AND the TPad inside to be of fixed size. > > -- > APHECETCHE Laurent (mailto:aphecetc@in2p3.fr) | TAPS/PHENIX/ALICE > SUBATECH-Ecole des Mines de Nantes-4 rue Alfred Kastler-44070 NANTES > cedex 03 > TEL (+33/0) 2 51 85 84 17 - FAX (+33/0) 2 51 85 84 24 > WWW: http://www-subatech.in2p3.fr/~photons > -- 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 04 2000 - 00:43:36 MET