- Code: Select all
------manager.h------
line 496, replace:
class WXDLLEXPORT wxFrameManagerEvent : public wxEvent
with:
class WXDLLEXPORT wxFrameManagerEvent : public wxNotifyEvent
line 497, replace:
wxFrameManagerEvent(wxEventType type) : wxEvent(0, type)
with:
wxFrameManagerEvent(wxEventType type) : wxNotifyEvent(type, 0)
line 503, replace:
wxFrameManagerEvent(const wxFrameManagerEvent& c) : wxEvent(c)
with:
wxFrameManagerEvent(const wxFrameManagerEvent& c) : wxNotifyEvent(c)
line 758, replace:
DECLARE_EVENT_TYPE(wxEVT_AUI_PANEBUTTON, 0)
with:
DECLARE_EXPORTED_EVENT_TYPE(WXDLLEXPORT, wxEVT_AUI_PANEBUTTON, 0)
DECLARE_EXPORTED_EVENT_TYPE(WXDLLEXPORT, wxEVT_AUI_PANECLOSED, 0)
line 767, after
#define EVT_AUI_PANEBUTTON(func) \
wx__DECLARE_EVT0(wxEVT_AUI_PANEBUTTON, wxFrameManagerEventHandler(func))
add:
#define EVT_AUI_PANECLOSED(func) \
wx__DECLARE_EVT0(wxEVT_AUI_PANECLOSED, wxFrameManagerEventHandler(func))
-----manager.cpp-----
line 30, after:
DEFINE_EVENT_TYPE(wxEVT_AUI_PANEBUTTON)
add:
DEFINE_EVENT_TYPE(wxEVT_AUI_PANECLOSED)
line 536, remove:
Destroy();
line 3301, after:
wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
add:
//Send an event
wxFrameManagerEvent e(wxEVT_AUI_PANECLOSED);
e.SetPane(&pane);
e.SetButton(NULL);
ProcessMgrEvent(e);
if (e.IsAllowed())
{
// reparent the pane window back to us and
// prepare the frame window for destruction
pane.window->Show(false);
pane.window->Reparent(m_frame);
pane.frame = NULL;
pane.Hide();
//Then destroy the window
wnd->Destroy();
}
Kirix Support Forums
Close Event handling
2 posts
• Page 1 of 1
Close Event handling
Joel's Place
Project Administrator for the UPX GUI and developer for wxDev-C++
I want a legal copy of VS Professional!
Project Administrator for the UPX GUI and developer for wxDev-C++
I want a legal copy of VS Professional!
- Joel
- Registered User
- Posts: 37
- Joined: Mon Jan 09, 2006 1:32 pm
- Location: Singapore
2 posts
· Page 1 of 1
Return to wxAUI Patches & Modifications