ubsicap / paratext_demo_plugins

Sample code to demonstrate how to create a Paratext plugin
2 stars 4 forks source link

OnClose / OnLeave Events #32

Closed GeoDirk closed 1 year ago

GeoDirk commented 1 year ago

Hey Team,

There doesn't appear to be an OnClose() type event that we can tap into - an event for when the window is physically closed by the user. There is an OnLeave() event which behaves more like lost focus where it is triggered when the user leaves our panel window and goes to another. And oddly enough, the header for that override has a description that it is closing:

image

Is there really not a OnClose/OnClosing event that we can tap into?

FoolRunning commented 1 year ago

There is a WindowClosing event on the child window you should be able to access.

GeoDirk commented 1 year ago

Ah...perfect thanks!