I have created a listctrl with the autowidth mixin. it works great
but... I can resize any of the columns except for the last column.
I have 5 columns (but the first has width 0 because I want to use images
some columns and text in others). The flexible column is the 4rth column.
The 5th column cannot be resized. I can drag the column separator in the
top bar but at the end of _doResize (in the mixin) the column snaps back
to the initial size.
If I put in a breakpoint in the _doresize() code and manually resize the
column all is well.
This were logical to me if this happened to all columns but it doesn't.
Can someone please explain to me what it is I am not getting? (hints as
how to solve it would be appreciated too ;-))
Paul
--
Paul Sijben tel: +31334566488
Eemvalley Technology BV fax: +31334557523
the Netherlands http://eemvalley.com
-----------------------------------------------------
EemValley Technology werft python & wxpython
programmeurs: http://www.eemvalley.nl/jobs
_______________________________________________
wxpython-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
You can try to catch EVT_LIST_COL_BEGIN_DRAG and/or
EVT_LIST_COL_DRAGGING inside your ListCtrl without Skip()ing the
event, so autowidth won't be called. Then investigate about the event
(evt.GetColoumn() and so on) and decide what to do.
Good luck!
2008/7/15 Paul Sijben <[email protected]>:
> I have created a listctrl with the autowidth mixin. it works great
> but... I can resize any of the columns except for the last column.
>
> I have 5 columns (but the first has width 0 because I want to use images
> some columns and text in others). The flexible column is the 4rth column.
>
> The 5th column cannot be resized. I can drag the column separator in the
> top bar but at the end of _doResize (in the mixin) the column snaps back
> to the initial size.
>
> If I put in a breakpoint in the _doresize() code and manually resize the
> column all is well.
>
> This were logical to me if this happened to all columns but it doesn't.
> Can someone please explain to me what it is I am not getting? (hints as
> how to solve it would be appreciated too ;-))
>
> Paul
>
> --
> Paul Sijben tel: +31334566488
> Eemvalley Technology BV fax: +31334557523
> the Netherlands http://eemvalley.com
> -----------------------------------------------------
> EemValley Technology werft python & wxpython
> programmeurs: http://www.eemvalley.nl/jobs
>
> _______________________________________________
> wxpython-users mailing list
> [email protected]
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
>
_______________________________________________
wxpython-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users