I have a wxListCtrl added to a sizer. The list control has multiple columns, but their length does not resize along. Is there a way to get the width of the columns resized?
I tried to set the column width with wxLIST_AUTOSIZE and wxLIST_AUTOSIZE_USEHEADER but is not make it.
I have a wxListCtrl added to a sizer. The list control has multiple columns, but their length does not resize along. Is there a way to get the width of the columns resized?
See the wxListCtrlAutoWidthMixin class in the wxPython.lib.mixins.listctrl module.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Finally I did it by getting the ListCtrl size on each OnSize call when the frame is resized.. Based on this size I recalculate the widths for all columns, with any ratio I want.
Marius
Robin Dunn wrote:
···
Marius Trestioreanu wrote:
Hi!
I have a wxListCtrl added to a sizer. The list control has multiple columns, but their length does not resize along. Is there a way to get the width of the columns resized?
See the wxListCtrlAutoWidthMixin class in the wxPython.lib.mixins.listctrl module.
--
Marius Trestioreanu
ITCNETWORKS
Phone:+40-21-2036640; ESN: 6-786-6640; Fax:+40-21-2036666