]> git.saurik.com Git - wxWidgets.git/commitdiff
added sample (currently commented out) of how to veto column size events
authorRobin Dunn <robin@alldunn.com>
Thu, 7 Feb 2002 01:04:53 +0000 (01:04 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 7 Feb 2002 01:04:53 +0000 (01:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/wxListCtrl.py

index 41645a29c3a5a7b328d87255fb978e6c550a3bdb..b861392e54e0523d7948d5e98f543fbc00d7ae98 100644 (file)
@@ -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")