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
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:06 MET