Moving user forms

V

visdev1

How would you match visio's pinX and pinY to a userform's .Top and .Left ?
I have a user form that i want to move over another shape. So i need some
way to match the X Y of the form to the X Y of the shape.
Thanks for any help!
 
A

Al Edlund

simple math. pinx and piny are are the centers (half the length and width)
of the visio shape. you have to compute the virtual pinx and piny of your
form by offsetting it's height and width by it's top and left.
al
 
V

visdev1

so do i convert inches to points or twips?

Al Edlund said:
simple math. pinx and piny are are the centers (half the length and width)
of the visio shape. you have to compute the virtual pinx and piny of your
form by offsetting it's height and width by it's top and left.
al
 
V

visdev1

Also, isn't visio's pinx piny values show distance from the edge of the page
and the form is the distance from the edge of the screen?
 
V

visdev1

Im using visio2000 is there another function i could use other then
GetWindowRect.
This looks like what i want i just need accurate coordinates for the formula.
Thanks for your help
 

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