Hi,
I’d like to ‘fade out’ items in a ListCtrl (for example when a certain selection is made by the user) and I thought I could do that by increasing the transparency of the text colour of an item in a number of steps, but setting the transparancy of a list item doesn’t seem to have an effect. This is on Mac OSX, wxPython 2.8, Python 2.5. I tried both with and without the native ListCtrl (i.e. wx.SystemOptions.SetOptionInt(‘mac.listctrl.always_use_generic’, 1|0)).
Is it possible to use transparency in the ListCtrl (and other controls)?
Thanks, Frank
Attached is a work-around that seems to work pretty well.
Cheers, Frank
fade.py (4.56 KB)
···
2007/1/18, Frank Niessink frank@niessink.com:
Hi,
I’d like to ‘fade out’ items in a ListCtrl [snip]
Beautiful... it's amazing to see that everything is possible in wxPython 
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
···
On 1/18/07, Frank Niessink <frank@niessink.com> wrote:
2007/1/18, Frank Niessink <frank@niessink.com>:
> Hi,
>
> I'd like to 'fade out' items in a ListCtrl [snip]
Attached is a work-around that seems to work pretty well.