Thanks in advance!
David Hearn
dhe...@mindspring.com
David Hearn wrote in message <6ovha3$cb4$1...@camel29.mindspring.com>...
To convert twips use the functions twipstopixelsx and twipstopixelsy.
So if a button is at 1000 top, and 7000 left twips. (scalemode of form)
Let's say twips to pixels is 10. (never).
And let's say the form is at 100 top, 100 left twips)
Form is at 10 top and 10 left pixels. (ie 100/10)
Button is at 100 top and 90 left pixels.
Button on screen is at 110 top and 710 left.
So you want to move your agent to:
Top(Y) of (100 - (128/2)
Left(X) of (710 - 128 - 5) the extra 5 is to make sure your
agent doesn't actually touch (looks better)
Hope this helps.
Good Luck,
Dean
Thanks for the link. Looks like it has some good information on it I can
use.
David Hearn
dhe...@mindspring.com
I seem to be having some trouble with this still. Could you be so kind
as to send me an example of some code to perform this task.
Thanks,
David Hearn
dhe...@mindspring.com