Cursor position

G

gummy

How do I convert mouse cursor position into point position on Document?

I'm doing custom resize of my FreeForm AutoShape object and it doe
what it needs to do but mouse is like 100-200 points off the place i
should be

I converted Screen cursor into Client cursor now how I get to the poin
on the Document?

Thank
 
S

Simon Lloyd

Are you trying to create a mouseover event

gummy;635558 said:
How do I convert mouse cursor position into point position on Document

I'm doing custom resize of my FreeForm AutoShape object and it doe
what it needs to do but mouse is like 100-200 points off the place i
should b

I converted Screen cursor into Client cursor now how I get to the poin
on the Document

Thank

--
Simon Lloy

Regards
Simon Lloy
'Microsoft Office Help' (http://www.thecodecage.com
 
G

gummy

Simon said:
Are you trying to create a mouseover event?


not really. I use OLE so SceenCursor(X,Y) is known and
ClientCursor(X,Y) I already calculated
I need to convert it to Autoshape object coordinates

something like XPos=ClientCursor.X + Document.LeftMargin+Document.Left
or is it AcriveView?
But Document.Left is always a constant
I also tried PixelsToPoints but it doesn't seem to work either
 
S

Simon Lloyd

Sorry gummy thats not my feild :(
gummy;635861 said:
not really. I use OLE so SceenCursor(X,Y) is known and ClientCursor(X,Y)
I already calculated
I need to convert it to Autoshape object coordinates

something like XPos=ClientCursor.X + Document.LeftMargin+Document.Left
or is it AcriveView?
But Document.Left is always a constant
I also tried PixelsToPoints but it doesn't seem to work either


--
Simon Lloyd

Regards,
Simon Lloyd
'Microsoft Office Help' (http://www.thecodecage.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top