[wxPython-users] wx.ListCtrl and disabling an item

Robin Dunn robin at alldunn.com
Mon Dec 24 16:44:23 PST 2007


Donn Ingle wrote:
> Hi,
>  I have been scouring the docs and the net to find a way to disable
> (grey-out) a single ListItem within a list control. I need to indicate that
> a thing is still there, one just cannot choose it right now. 
> 
> Any suggestions? I suppose I could change it's colour and somehow control
> the focus, but I thought there'd be a simpler item.disable() kind of way.

There is the wx.LIST_STATE_DISABLED state flag, but it doesn't seem to 
be used at all in the C++ code...


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




More information about the wxpython-users mailing list