I am using C# and Visio 2007 SDK.
Is there a way to show the shape data window in a particular position with a given size?
Thanks a lot.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you can get the Visio.Window object that represents the shape data window, then you should be able to use its WindowState, or the MergeClass, MergeID and MergePosition properties, or the SetWindowRect method to control its size, position and state.
See the property and method help for the Visio.Window class here:
http://msdn.microsoft.com/en-us/library/aa342293%28v=office.12%29.aspx
And this link lists the various values for the WindowState property:
http://msdn.microsoft.com/en-us/library/aa342166%28v=office.12%29.aspx
Here’s how to get the pan/zoom window from the active window:
Hopefully, there is (and you can find) a constant that allows you to get direct access to the shape data window as well. Other visWinID* values are listed here:
http://msdn.microsoft.com/en-us/library/ms428302%28v=office.12%29.aspx