Re: Fixed size TPad/TCanvas
Onuchin Valeriy (onuchin@sirius.ihep.su)
Wed, 21 Jul 1999 16:14:04 +0400
aphecetc@in2p3.fr wrote:
>
> Return-Path: <@ihep.su:owner-roottalk@hpsalo.cern.ch>
> Received: from ihep.su by m10.ihep.su (MX V4.2 VAX) with SMTP; Wed, 21 Jul 1999
> 14:49:40 GMT+03:00
> Received: from emcal06.rhic.bnl.gov by ihep.su (5.65v4.0/RELCOM-IHEPv4.7) id
> AA09128; Wed, 21 Jul 1999 14:48:52 +0400
> Received: from newmint.cern.ch by emcal06.rhic.bnl.gov via ESMTP
> (950413.SGI.8.6.12/940406.SGI) id GAA29641; Wed, 21 Jul 1999 06:48:21
> -0400
> Received: from hpsalo.cern.ch (hpsalo.cern.ch [137.138.199.59]) by
> newmint.cern.ch (8.9.3/8.9.3) with ESMTP id MAA21096; Wed, 21 Jul
> 1999 12:45:23 +0200 (MET DST)
> Received: (from majordom@localhost) by hpsalo.cern.ch (8.7.1/8.7.1) id GAA16558
> for roottalk-outgoing; Wed, 21 Jul 1999 06:44:32 -0400 (EDT)
> X-Authentication-Warning: hpsalo.cern.ch: majordom set sender to
> owner-roottalk@root.cern.ch using -f
> Received: from newmint.cern.ch (newmint.cern.ch [137.138.26.94]) by
> hpsalo.cern.ch with ESMTP (8.7.1/8.7.1) id MAA16554 for
> <roottalk@hpsalo.cern.ch>; Wed, 21 Jul 1999 12:44:31 +0200 (METDST)
> Received: from nanhp7.in2p3.fr (nanhp7.in2p3.fr [193.48.91.18]) by
> newmint.cern.ch (8.9.3/8.9.3) with ESMTP id MAA20951; Wed, 21 Jul
> 1999 12:44:30 +0200 (MET DST)
> Received: from in2p3.fr (pompon@nanpc45.in2p3.fr [193.48.91.245]) by
> nanhp7.in2p3.fr (8.8.8/8.8.8) with ESMTP id MAA17841; Wed, 21 Jul
> 1999 12:44:29 +0200 (METDST)
> Message-ID: <3795A48C.58B9C1CF@in2p3.fr>
> Date: Wed, 21 Jul 1999 10:44:28 +0000
> From: Laurent Aphecetche <aphecetc@in2p3.fr>
> Organization: IN2P3
> X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.0.35 i686)
> X-Accept-Language: fr-FR, en
> MIME-Version: 1.0
> To: Fons Rademakers <rdm@pcsalo.cern.ch>
> CC: Root Mailing List <roottalk@hpsalo.cern.ch>, onuchin@sirius.ihep.su
> Subject: Re: Fixed size TPad/TCanvas
> References: <199907210921.LAA06854@pcsalo.cern.ch>
>
> Hi Fons,
>
> Problem is not really with the embedded canvas, but with the pads I put
> in it. Those ones
> I don't know how to prevent user from resizing them with the mouse.
> It seems that none of the Valery's proposals apply to TPad, and
> TCanvas::SetEditable seems to have
> no effect at all on the resizing capability.
>
> Any hints ?
>
Hi Laurent!
Again there is nothing impossible if you can overload
TPad methods.
Look again at $ROOTSYS/test/Tetris.cxx example.
class TetrisBoard : public TPad
has overloaded method
void ExecuteEvent(Int_t, Int_t, Int_t) { return; } // disable any
actions on it
Best regards. Valery