ListCtrl questions

Hi,

I have a report style list control with one column
only. I would like the selection bar to be always as
large as the list control itself. Currently the only
way I found it works is passing to SetColumnWidth a
huge value that I'm sure that the list control width
will not get bigger, something like 10000. Is there a
conformant way to do it? As I don't really like this
hack.

The second question, while looking at the list control
in wxpython demo, I noticed that the demo class
derives also from wxListCtrlAutoWidthMixin. What is
this class used at? And why isn't available using the
new wx namespace?

Thanks,
Sorin

ยทยทยท

__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

Sorin C. wrote:

Hi,

I have a report style list control with one column
only. I would like the selection bar to be always as
large as the list control itself. Currently the only
way I found it works is passing to SetColumnWidth a
huge value that I'm sure that the list control width
will not get bigger, something like 10000. Is there a
conformant way to do it? As I don't really like this
hack.

the ListCtrlAutoWidthMixin is the way to go.

The second question, while looking at the list control
in wxpython demo, I noticed that the demo class
derives also from wxListCtrlAutoWidthMixin. What is
this class used at? And why isn't available using the
new wx namespace?

It is available:

import wx.lib.mixins.listctrl
help(wx.lib.mixins.listctrl.ListCtrlAutoWidthMixin)

Regards
    Adi