QueryCancelWindowClose Problem

Started by metuemre, August 10, 2017, 01:51:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

metuemre

I have an issue with QueryCancelWindowClose event. I need a window to be open even if the user tries to close it. So I tried to use QueryCancelWindowClose event but it doesn't fire at all.

I tried at Application and Windows level but it doesn't work. BeforeWindowClosed and WindowOpened events work ok.

I cant see QueryCancelWindowClose event at Event Monitor as well.

Do I need to do something extra to make it work?

Nikolay

This event only fires for a diagram (top-level document) windows. May it be the issue?

metuemre

I see the problem.

I have an userform with OWC11.Spreadsheet control on it. Every second, a row of information is added to the Worksheet and userform is tied to a parent anchor window. In order not to lose collected data I need to make sure that anchor window is open. It can be visible/hidden if user wants to close it, but it should keep collecting data from an external server. QueryCancelWindowClose event was perfect for this but it seems that I can't use it.

Do you know a workaround to keep that specific window open as long as the document is open?

wapperdude

I don't suppose there is some sort of permissions setting you could assign / use?   

Wapperdude
Visio 2019 Pro