X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ed8f52acdd4bb07c57f2da1683969285feca887..ad653fa23069c5d9378247084f03c9a718c3ad62:/src/propgrid/manager.cpp diff --git a/src/propgrid/manager.cpp b/src/propgrid/manager.cpp index 788af596d3..99d6e145fc 100644 --- a/src/propgrid/manager.cpp +++ b/src/propgrid/manager.cpp @@ -355,7 +355,7 @@ private: int col = hcEvent.GetColumn(); int evtType = event.GetEventType(); - if ( evtType == wxEVT_COMMAND_HEADER_RESIZING ) + if ( evtType == wxEVT_HEADER_RESIZING ) { int colWidth = hcEvent.GetWidth(); @@ -367,7 +367,7 @@ private: return true; } - else if ( evtType == wxEVT_COMMAND_HEADER_BEGIN_RESIZE ) + else if ( evtType == wxEVT_HEADER_BEGIN_RESIZE ) { // Never allow column resize if layout is static if ( m_manager->HasFlag(wxPG_STATIC_SPLITTER) ) @@ -380,7 +380,7 @@ private: return true; } - else if ( evtType == wxEVT_COMMAND_HEADER_END_RESIZE ) + else if ( evtType == wxEVT_HEADER_END_RESIZE ) { pg->SendEvent(wxEVT_PG_COL_END_DRAG, NULL, NULL, 0, @@ -1032,7 +1032,7 @@ wxPropertyGridPage* wxPropertyGridManager::InsertPage( int index, // Connect to toolbar button events. Connect(pageObj->m_toolId, - wxEVT_COMMAND_TOOL_CLICKED, + wxEVT_TOOL, wxCommandEventHandler( wxPropertyGridManager::OnToolbarClick)); @@ -1515,11 +1515,11 @@ void wxPropertyGridManager::RecreateControls() m_pToolbar->Realize(); Connect(m_categorizedModeToolId, - wxEVT_COMMAND_TOOL_CLICKED, + wxEVT_TOOL, wxCommandEventHandler( wxPropertyGridManager::OnToolbarClick)); Connect(m_alphabeticModeToolId, - wxEVT_COMMAND_TOOL_CLICKED, + wxEVT_TOOL, wxCommandEventHandler( wxPropertyGridManager::OnToolbarClick)); }