Hi,
I am currently using the WindowClosing event with added code, to prompt/confirm from the user if the toolwindow should be closed or not. This works fine, however, depending on the toolwindow closed, I also need to close additional toolwindows related to the originally closed toolwindow.
If I try to add code to do this within the WindowClosing event, it gets a little complicated as I then have a routine that is trying to close windows from within the WindowClosing routine code - calling itself from within itself.
Wanted to know if there is a way to have the toolwindow 'x' close button only call a subroutine (and not trigger any toolwindow closing), which has all my code to close each of the required toolwindows.
Hope this makes sense.
Thanks
I am currently using the WindowClosing event with added code, to prompt/confirm from the user if the toolwindow should be closed or not. This works fine, however, depending on the toolwindow closed, I also need to close additional toolwindows related to the originally closed toolwindow.
If I try to add code to do this within the WindowClosing event, it gets a little complicated as I then have a routine that is trying to close windows from within the WindowClosing routine code - calling itself from within itself.
Wanted to know if there is a way to have the toolwindow 'x' close button only call a subroutine (and not trigger any toolwindow closing), which has all my code to close each of the required toolwindows.
Hope this makes sense.
Thanks