respect Veto()ing the column resize events; added test for this in the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -672,6 +672,13 @@ void MyListCtrl::LogColEvent(const wxListEvent& event, const wxChar *name)
|
||||
void MyListCtrl::OnColBeginDrag(wxListEvent& event)
|
||||
{
|
||||
LogColEvent( event, wxT("OnColBeginDrag") );
|
||||
|
||||
if ( event.GetColumn() == 0 )
|
||||
{
|
||||
wxLogMessage(_T("Resizing this column shouldn't work."));
|
||||
|
||||
event.Veto();
|
||||
}
|
||||
}
|
||||
|
||||
void MyListCtrl::OnColDragging(wxListEvent& event)
|
||||
|
Reference in New Issue
Block a user