weird MouseLoc() results
Posted: Mon Jun 30, 2008 3:12 pm
Sigh,
nothing works out of the box...
I'm currently trying to keep track of mouse movements in order to draw a polygon. On MouseDown, I prepare a "templateGraphic" of style "polygon" and
because I want the polygon to remain open. I then "create graphic" to create the polygon and make it visible.
"On MouseMove newX,newY" I then run the following code:
As a result, I get many vertical bars. If I look into "the points of the last graphic", I see several large positive and negative values (with absolute values > 20000). The mouse positions seem ok, my impression is, that the extension of the polygon produces those weird values...
Does anybody have an idea what goes wrong?
nothing works out of the box...
I'm currently trying to keep track of mouse movements in order to draw a polygon. On MouseDown, I prepare a "templateGraphic" of style "polygon" and
Code: Select all
set the Points of templateGraphic to (MouseLoc() & return)
"On MouseMove newX,newY" I then run the following code:
Code: Select all
local PointList; put the points of the last graphic into PointList
put newX & comma & newY & return after PointList
set the points of the last graphic to PointList
Does anybody have an idea what goes wrong?