Re: cursor in canvas

Rene Brun (Rene.Brun@cern.ch)
Wed, 15 Apr 1998 11:40:53 +0200


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