Kirix Support Forums

Notify application when pane is closed

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

Notify application when pane is closed

Postby csh on Tue Sep 30, 2008 8:39 am

I'd like to let my application know when a pane in a wxAuiManager is hidden by clicking the close button. I tried to capture an EVT_CLOSE or to override the virtual wxWindow::Show() function without success. The only thread I have found on a related topic was on the wxWidgets list, but there was no answer: ... 06722.html
so maybe I'm missing something very obvious. Any help would be greatly appreciated.
Registered User
Posts: 2
Joined: Tue Feb 27, 2007 6:09 am

Re: Notify application when pane is closed

Postby HzD_Byte on Sat Oct 25, 2008 4:30 am

You can use EVT_AUI_PANE_CLOSE macro.
Call wxAuiManagerEvent::Veto() to cancel pane's closing.
Registered User
Posts: 15
Joined: Sun Feb 12, 2006 1:03 am

Return to wxAUI Questions, Thoughts & Feedback