skip the header click event to allow sorting (done in the default handler) to take place
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1115,6 +1115,10 @@ void MyFrame::OnContextMenu( wxDataViewEvent &event )
|
|||||||
|
|
||||||
void MyFrame::OnHeaderClick( wxDataViewEvent &event )
|
void MyFrame::OnHeaderClick( wxDataViewEvent &event )
|
||||||
{
|
{
|
||||||
|
// we need to skip the event to let the default behaviour of sorting by
|
||||||
|
// this column when it is clicked to take place
|
||||||
|
event.Skip();
|
||||||
|
|
||||||
if(!m_log)
|
if(!m_log)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user