|Re: Control over close button on Part tab [message #1015663 is a reply to message #1015581]
||Fri, 01 March 2013 15:13
|| Jo Jaquinta
Registered: January 2013
Well, the code there words as advertised. But there are two problems:|
1) The handler does not seem to be called unless the tab for the part is in focus.
If I just click on the "X", my handlers does not get called. If I click first on the tab title, then the "X", it does get called.
[Actually, it's more complex than that. I'm not sure what it is anymore.]
2) This doesn't give me any control over the close button. I can see when the user tries to close it. I can even pop up a message that asked them if they really want to do that. But, if they don't, I don't see any way to stop the close from happening.
Is there a way to mark an event as "consumed"? Or otherwise abort it?
I looked to see if I could change NEW_VALUE, but there is no way to set the property.
I tried just going back and setting Visible=true on the model part, but that didn't work. Either immediately or after a pause.
I tried just throwing an exception to crash out the event processing (!), but you've done the right thing and catch all exceptions.
How can I abort a close?
(pure e4, no compatability layer stuff needed, BTW)
Powered by FUDForum
. Page generated in 0.02883 seconds