From: Robin Dunn Date: Thu, 7 Feb 2002 01:04:53 +0000 (+0000) Subject: added sample (currently commented out) of how to veto column size events X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1192dbd4500411b6234ec2d6f17619dc5f5866cf added sample (currently commented out) of how to veto column size events git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/wxListCtrl.py b/wxPython/demo/wxListCtrl.py index 41645a29c3..b861392e54 100644 --- a/wxPython/demo/wxListCtrl.py +++ b/wxPython/demo/wxListCtrl.py @@ -223,6 +223,10 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin): def OnColBeginDrag(self, event): self.log.WriteText("OnColBeginDrag\n") + ## Show how to not allow a column to be resized + #if event.GetColumn() == 0: + # event.Veto() + def OnColDragging(self, event): self.log.WriteText("OnColDragging\n")