int col = hcEvent.GetColumn();
int evtType = event.GetEventType();
- if ( evtType == wxEVT_COMMAND_HEADER_RESIZING )
+ if ( evtType == wxEVT_HEADER_RESIZING )
{
int colWidth = hcEvent.GetWidth();
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) )
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,
return false;
}
+#if wxUSE_TOOLBAR
wxPropertyGridPage* prevPage;
if ( m_selPage >= 0 )
prevPage = GetPage(m_selPage);
else
prevPage = m_emptyPage;
+#endif
wxPropertyGridPage* nextPage;
// Connect to toolbar button events.
Connect(pageObj->m_toolId,
- wxEVT_COMMAND_TOOL_CLICKED,
+ wxEVT_TOOL,
wxCommandEventHandler(
wxPropertyGridManager::OnToolbarClick));
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));
}