Re: [ROOT] screen dimensions, zoom y-axis, non-blocking console input

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue Oct 17 2000 - 10:59:33 MEST


Hi David,

  here some answers to your questions.

1) Full screen size:
   Int_t  x, y;
   UInt_t w, h;
   gVirtualX->GetWindowSize(gClient->GetRoot()->GetId(),x,y,w,h);

2 & 3) Input from console and using Getline (with tab expansion and
   command line editing). See attached macro term3.C.

4) Rene will answer this.


Cheers, Fons.



On Tue, Oct 17, 2000 at 01:09:19AM -0500, David Faden wrote:
> Hi,
>   Could someone post or send to me directly code to get the full 
> available screen size -- the dimensions needed to create a TCanvas 
> filling the whole screen?
>   Is it possible for macros to grab input from the console without 
> blocking graphics updates? Is it possible for macros to access the 
> functionality of Getline.C?
>   From the documentation and examples, it sounds like it should be 
> easy to zoom in on the y-axis of a TH1F or TGraph by clicking the left 
> mouse button and dragging along the y-axis.  I do this and a box is drawn 
> around the y region as it for a successful zoom in on the x-axis -- however, 
> after I release the mouse button, the box just disappears and nothing 
> else happens. (I'm using ROOT  version 2.23/12 1 February 2000 under RH 
> Linux 6.1.) Do I have to do something special to zoom in on the y-axis?
>   Sorry for the unrelated sequence of questions. Thank you for your 
> patience.
>   If this message has made it two the roottalk list twice, let me offer 
> my sincerest apologies for wasting bandwidth.
> 
> David

-- 
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 02 2001 - 11:50:35 MET