SetViewRect - attainable values for top and left

S

sorina.negulescu

I attempt to change the current left and top values by a small
amounts:

Visio.ActiveWindow.GetViewRect pdLeft, pdTop, pdWidth, pdHeight

Say the returned values are:
pdLeft = 0.2969
pdTop = 13.5625
pdWidth = 15.1875
pdHeight = 8.9063

Now,if I make pdTop 13.56, and call
Visio.ActiveWindow.SetViewRect pdLeft, pdTop, pdWidth, pdHeight
Visio.ActiveWindow.GetViewRect pdLeft, pdTop, pdWidth, pdHeight,
the returned pdTop is 13.5625

If I make pdTop 13.50, and call
Visio.ActiveWindow.SetViewRect pdLeft, pdTop, pdWidth, pdHeight
Visio.ActiveWindow.GetViewRect pdLeft, pdTop, pdWidth, pdHeight,
the returned pdTop is 13.50

13.52 becomes 13.515625
13.53 becomes 13.53125
13.57 becomes 13.5625

What is the rule by which Visio decides which values are attainable
and how does it choose the actual values?

Thanks,
Sorina
 
J

JuneTheSecond

Hi,

I think it is a matter of GetViewRect, especilally when
GetViewRect continues to SetViewRect.
DoEvents does no help.
SetViewRect seems correctly set pdTop.
If you GetViewRect alone in another program after
SetViewRect completely finished,
you would recieve correct pdTop from GetViewRect .

Visio has same kind of problems in other methods.
Some of them that are questioned here recently
are SendBackward and BringForwoad methods.

--
Best Regards.

JuneTheSecond
Now, visual calculation is more visual.
http://www.geocities.jp/visualcalculation/english/index.html
 

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