Previous question on Windows Event and response

M

Mai-lan

Hi, there:
I wanted to post a reponse to a question that came up earlier in the
newsgroup about how to notify when a window gets closed. Sorry, I can't find
the exact post so I'm posting the question again, and the response...

Question: I have a menu item that allows the user to make the stencil window
visible or not. There is also an X on the window so that the user can
manually close it. However, my menu item will remain checked unless I can
catch that event. I have looked at the events for the Visio drawing control,
but can't see one that would notify me when one of these windows is opened
or closed (BeforeWindowClosed only fires when the main drawing control is
exiting). Any ideas on how I could keep my menu item in synch with the
visible status of the stencil window?


Response:
Use the event set from "Control.Document.Application." The Application
object should fire a BeforeWindowClosed event for the stencil view.

Thanks, and sorry for the delay!

Mai-lan
 

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