Re: [ROOT] HWND of the Canvas window?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Nov 08 2001 - 08:28:44 MET


Hi valeri,

Thanks for sending this improvement to TWin32 and TWin32Canvas.
Now in the CVS source.

Rene Brun

Valeri Fine wrote:
> 
> Hello,  Please find the corrections for Win32 attached.
> to implement  TCanvasIMp::Iconify(), TCanvasImp::Show() and TVirtualX::GetPlanes
> methods.
> There is still 256 indices constrain though. It sounds there was solid change of the ROOT
> color model. That was not propagate to Windows implementation yet. That one can not fix
> quickly. One has to learn the new model first.
> 
>    Cheers,
>                                   Valeri
> 
> ----- Original Message -----
> From: "Valeri Fine" <fine@bnl.gov>
> To: "Aldo F Saavedra" <AFSaavedra@lbl.gov>; <roottalk@pcroot.cern.ch>
> Sent: Wednesday, November 07, 2001 11:16 AM
> Subject: Re: [ROOT] HWND of the Canvas window?
> 
> > Dear Aldo,
> > >
> > > 1) I'm wondering if it is possible to get the handle of the canvas
> > > window
> > > so that I can I minimise it, change its z position when its hidden by
> > > other windows, etc.
> >
> > To move a window there is no need to get it platform specific HWND handle.
> > You can move TCanvas object using
> > TCanvasImp::SetWindowPosition(Int_t x, Int_t y)
> > TCanvasImp::Iconify();
> > TCanvasImp::Show() etc  methods
> > http://root.cern.ch/root/htmldoc/TCanvasImp.html#TCanvasImp:SetWindowPositio
> > n
> > and
> > http://root.cern.ch/root/htmldoc/TCanvas.html#TCanvas:GetCanvasImp
> >
> > Just try from the ROOT command prompt:
> >
> >   TCanvas *myCanvas = new TCanvas("myCanvas");
> >   myCanvas->GetCanvasImp()->SetWindowPosition(600,600);
> >
> >  TCanvasImp provides other methods to control the windows on the screen.
> >  If they did not work for you, please report this as a ROOT bug to be fixed.
> >
> > >
> > > 2) Why are the colours of the palette in the windows version being
> > > limited to 236 colours?
> >
> >   It is not Windows version of ROOT limitation. ROOT has built-in array
> >   256 indices.
> >   I wonder if ROOT team had lifted that restriction.
> >
> > >  There is a bit of code in
> > > TGWIN32WindowsObject.cxx
> > > (TGWin32WindowsObject.cxx,v 1.2 2001/05/23 16:41:25 brun Exp$ is the
> > > version that I'm using) that does that. I compiled Root on Mandrake v8.1
> > > and I was
> > > able to make very nice contour plots which I'm not able to do under
> > > windows.
> >
> >  I think the 256  colors array ROOT limit is not the reason of your
> > troubles.
> >  Can you send me a short example to reproduce.
> >
> >  Best regards,
> >                   Valeri
> >
> >
> 
>   --------------------------------------------------------------------------------
> 
>                          Name: win32_diff.diff
>    win32_diff.diff       Type: unspecified type (application/octet-stream)
>                      Encoding: quoted-printable



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