I overrided wxAuiManager, Manager, in order to use my own wxAuiFloatingFrame class.
So I overrided these methods :
- Code: Select all
virtual wxAuiFloatingFrame* CreateFloatingFrame(wxWindow* parent, const wxAuiPaneInfo& p);
void OnLeftDown(wxMouseEvent& evt);
void OnLeftUp(wxMouseEvent& evt);
void OnFindManager(wxAuiManagerEvent& evt);
void Update();
Moreover, I declared the methods with their events :
- Code: Select all
BEGIN_EVENT_TABLE(Manager, wxAuiManager)
EVT_LEFT_DOWN(Manager::OnLeftDown)
EVT_LEFT_UP(Manager::OnLeftUp)
EVT_AUI_FIND_MANAGER(Manager::OnFindManager)
END_EVENT_TABLE()
Firstly, I only copied the source code of each original method to test my Manager and when I move a pane added to the main window using my Manager, this error occurs:
Assert "wxAssertFailure" failed in DoNotifyWindowAboutCaptureLost(): window that captured the mouse didn't process wxEVT_MOUSE_CAPTURE_LOST
Can you help me?
Best regards