Visio ActiveX control and Stencils' window pane

W

Walter Quirtmair

Hi,
I'm using the Visio 2003 ActiveX control to add drawing functionality to our
..NET/C# application. There are some strange effects when working with
stencils and probably somebody can give me an advice...

OpenStencilWindow():
I'm calling this function to show the document's internal stencil. It works
for the 1st time, then - when the stencil has been closed by a click on
"x" - it won't work anymore. I had to remember the window returned from the
1st call and do a window.Visible=true instead. Why is this?

OpenEx()
I'm calling this to load stencils and to display them docked left sided in
the ActiveX' window. This works *sometimes*, often the sencils won't show
up. Even more confusing this seems to depend on previous calls to
OpenStencilWindow, too.

I need some advice how to work with the stencil pane in general. What is the
preferred way to simply show/hide the pane at any time? It should be able to
load/unload stencils and show/hide the pane so it shows me the correct
loaded stencils.

Is it possible to hide the close-button "x" in a stencils' window? This way
I could keep the stencil pane open all the time and don't allow the user to
hide it...

Thanks for any help,
Walter
 
P

Paul Herber

Is it possible to hide the close-button "x" in a stencils' window? This way
I could keep the stencil pane open all the time and don't allow the user to
hide it...

I don't think you can hide the Close button but you could trap the
document close event and check for the extension .vss and then reopen
the stencil.
 

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