MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: mouse drage listener!

  • To: mathgroup at
  • Subject: [mg71417] RE: [mg71398] mouse drage listener!
  • From: "Ingolf Dahl" <ingolf.dahl at>
  • Date: Fri, 17 Nov 2006 04:30:52 -0500 (EST)

I assume that you are thinking about the "Get Graphics Coordinates"
mechanism, and on my Windows computer it is stated that "If you click on or
more times while holding down the Control key, the coordinates will be
selected. You can then copy and paste the coordinate value to an input
cell". You might also drag the mouse with left button pressed while holding
down the control key. There might be a slightly different procedure in other
computer systems.
There is also an undocumented way to read the coordinates by a Mathematica
command, and this is most easily achieved if the command and the graphics
cell are placed in different notebooks. If your clicked graphics is located
in a notebook specified by the notebook object nb, you simply do
NotebookRead[nb], and then the graphic coordinates are returned as a list of
In my TaggedCells package (see
there is a command ReadMousePad, to both select a graphics cell, wait for
input and read the points entered. The requirement is that the graphics cell
has the CellTags option set.

Best regards

Ingolf Dahl

> -----Original Message-----
> From: mumat [mailto:csarami at] 
> Sent: den 16 november 2006 06:55
> To: mathgroup at
> Subject: [mg71398] mouse drage listener!
> Dear All,
> Assume that you have Image (m by n) uploaded in mathematica. 
> You left-click on mouse and drag  it to draw a curve while ur 
> pressing on left button.
> How can i retrieve the list of points ( i,j) where the mouse 
> has gone over. 
> thanks much in advance. 
> regards, 
> chekad

  • Prev by Date: Re: VerifySolutions setting
  • Next by Date: Re: RE:Need Help: Can not use Ticks under PolarPlot
  • Previous by thread: Re: mouse drage listener!
  • Next by thread: Re: (Mathematica wish list)