Re: cursor in canvas

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Apr 15 1998 - 11:40:53 MEST


Dirk Meier wrote:
> 
> Hi,
> 
> is it possible to change the mouse cursor
> when looking at a graph/histogram in a canvas into
> a big crosshair ("spiderlines") like in PAW ?
> So one sees in addition to the EventStatus display
> the location on the x- and y- axis?
> 
> Dirk

When the cursor is moved in a pad, Root finds the object by
invoking the DistancetoPrimitive function for all objects in the pad.
Once the object has been identified, the ExecuteEvent function
is called. This function changes the cursor shape (object dependent)
to an "arrow", a "cross", a "hand", etc. The crosshair is not
implemented. This could be implemented as an option.

As you say, the option "EventStatus" indicates very precisely
the axis coordinates corresponding to the cursor position on an object.

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:32 MET