Add wxDataViewCtrl::GetCurrentColumn().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2012-01-17 14:05:07 +00:00
parent 590a0f8bcb
commit ee1377e1fa
14 changed files with 77 additions and 1 deletions

View File

@@ -943,6 +943,17 @@ void MyFrame::OnShowCurrent(wxCommandEvent& WXUNUSED(event))
{
wxLogMessage("There is no current item.");
}
wxDataViewColumn *col = m_ctrl[0]->GetCurrentColumn();
if ( col )
{
wxLogMessage("Current column: %d",
m_ctrl[0]->GetColumnPosition(col));
}
else
{
wxLogMessage("There is no current column.");
}
}
void MyFrame::OnSetNinthCurrent(wxCommandEvent& WXUNUSED(event))