[wxPython] hiding 1st column in wxListCtrl

hi,
i want to disable resize of first column in wxListCtrl (with initial size=0)
, so i've tried to manage three events:
EVT_LIST_COL_BEGIN_DRAG
EVT_LIST_COL_DRAGGING
EVT_LIST_COL_END_DRAG

unfortunatelly i am only able to catch first of them.

is there any other way to disable first column dragging?

marcin andrzejewski
m.andrzejewski@dmz.com.pl
keson@post.pl

i want to disable resize of first column in wxListCtrl (with initial

size=0)

, so i've tried to manage three events:
EVT_LIST_COL_BEGIN_DRAG
EVT_LIST_COL_DRAGGING
EVT_LIST_COL_END_DRAG

unfortunatelly i am only able to catch first of them.

is there any other way to disable first column dragging?

This should do it:

    def OnColBeginDrag(self, event):
        # Show how to not allow a column to be resized
        if event.GetColumn() == 0:
            event.Veto()

ยทยทยท

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!