Re: Fixed size TPad/TCanvas

Laurent Aphecetche (aphecetc@in2p3.fr)
Wed, 21 Jul 1999 08:59:42 +0000


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