wx.gizmos.TreeListCtrl background colors in 2.8.1.1

Hi Joe,

Thanks, the wx.TR_FULL_ROW_HIGHLIGHT style flag did the trick. Seems a
bit of a misnomer, as it works whether you select the row or not (which
is what I think of when I thing of 'highlight'). Also, since I am using
Boa Constructor and its not a listed style attribute, didn't even know
about it.

Curious, but do you know if this a workaround for 2.8.1.1 or is this how
it works for you in 2.8.2.0 pre-release? Since its a change in behavior
from the prior version, it would be nice if I didn't need it for later
releases. Or is this how its supposed to work and it worked before
merely by luck?

I have no idea, as I almost never used TreeListCtrl. It's a useful
widget, but I prefer to layout things differently, or I simply never
needed to use it for all my GUIs. Maybe Robin knows the answer, and I
am sure that when he will come back he will be able to give a more
sound answer than mine.
However, I remember seeing some work being done on TreeListCtrl in the
past weeks, mostly to make it use the native Windows XP column header
(when applicable), but other than that, I am just shooting in the dark
:smiley:

Andrea.

ยทยทยท

On 3/13/07, Joe Marino wrote:

> Hi Joe,
>
> On 3/13/07, Joe Marino wrote:
>
>> Running on Windows XP Pro, SP2, Python 2.4.3, just upgraded to wxPython
>> 2.8.1.1 (ANSI). Prior to this I was colorizing my treeListControl by
>> calling SetItemBackgroundColour() and it would color the enitre row
>> going across. Now it sets the background color for just the text
>> itself. Not the effect I am really looking for.
>>
>> So, is this a bug or is this now the new intended behavior? Personally
>> I want to color the entire row across, so I guess my real question is:
>> is there a way to do that?
>
> It works for me, Windows XP, Python 2.5, wxPython 2.8.2.0 pre-release
> unicode. I just modified the wxPython demo and it works as expected.
> By the way, which style are you using for your TreeListCtrl? Have you
> considered using wx.TR_FULL_ROW_HIGHLIGHT?
>
> Andrea.

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

--
Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/