DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I prevent a user from closing a SUDialog?

Solved!
Go to solution

I have a SUDialog that starts some processes and I'd like the user not to be able to close the dialog until these processes are finished, or until the user cancels them.  How can I do this?  

 

Thanks!

0 Kudos
Message 1 of 5
(2,882 Views)

I suspect you are referring to modal dialogs You may find the following help page quite useful: 

DIAdem 2015 Help: Modal and Non-Modal User Dialog Boxes

0 Kudos
Message 2 of 5
(2,793 Views)

No, I have a non-modal SUDialog that is open and sometimes showing updates from an outside process.  I'd like the user to be unable to cancel this until this process is finished or cancelled.  

 

I tried adding something in the EventTerminate action, but am not sure how to get out of the EventTerminate (which is initiated if the user presses the "x" at the upper right corner of the dialog."

0 Kudos
Message 3 of 5
(2,786 Views)
Solution
Accepted by topic author JuliaDawkins

Please check help of the

EventQueryClose

event which can be used for this use case.

Message 4 of 5
(2,780 Views)

this works, thank you!

0 Kudos
Message 5 of 5
(2,770 Views)