Getting strange Y coordinates on MouseMove

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hmm, this is odd.

I wanted to see what X, Y coordinate my MouseOver was generating because I'm
having trouble with some form locations.

I just ran a quick MsgBox X Y and am getting some weird numbers for the Y
coordinate. My X is showing up just fine but Y is less than a 1/10th the
value it should be and seems to be totally unrelated to the location of my
mouse.

Anyone know whats up here?

I'm using the Mouseover on a continuous subform is that helps.

Bill
 
Hi,


I use a label to report the position, and the value is reported right,
in twips (1440 twips in one inch, or 567 twips in a cm).


Hoping it may help,
Vanderghast Access MVP
 
Hmm, this is odd.

I wanted to see what X, Y coordinate my MouseOver was generating because I'm
having trouble with some form locations.


I'm using the Mouseover on a continuous subform is that helps.
mouse coordinates are inside this control and doesn't reflect where
you are on the form.

you have to add if you are in detail section:
1;. me.windowtop
2. me.section(acheader).height
3 me.CurrentSectionTop

then you are near the actual mouseposition

with a subform you have to play with the SubForm-Control also.

if you want it acurate on the pixel, you need a lot of api's and a few
hundred lines of code

If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW
 
Back
Top