Hi all...
I'm using Win7 and the latest release of wxPython. I use a treectrl
and I want the item under the mouse to be highlighted ala listctrl (a
nice obvious blue). Right now, treectrl makes the text bold and gives
the item under the mouse the slightest hint of grey. Is there a way to
change this color? I just want it to be very obvious which item is
under the mouse when the user clicks.
I notice that the item under the mouse IS being selected continuously,
so if I could change the selection color that would work. I did try
changing the color manually during an on select event, but it seems to
be automatically changed back.
Thanks
Ivan
On Windows the wx.TreeCtrl uses the native widget and so you're stuck with the native behavior which uses system and theme settings for the selection colors. There are various generic tree widgets that are implemented in Python and so will be more flexible or at least hackable.
···
On 2/10/10 12:21 PM, sunspider wrote:
Hi all...
I'm using Win7 and the latest release of wxPython. I use a treectrl
and I want the item under the mouse to be highlighted ala listctrl (a
nice obvious blue). Right now, treectrl makes the text bold and gives
the item under the mouse the slightest hint of grey. Is there a way to
change this color? I just want it to be very obvious which item is
under the mouse when the user clicks.
--
Robin Dunn
Software Craftsman
Thanks:)
Which are the generic tree widgets and how can I tell?
···
On Feb 10, 9:50 pm, Robin Dunn <ro...@alldunn.com> wrote:
On 2/10/10 12:21 PM,sunspiderwrote:
> Hi all...
> I'm using Win7 and the latest release of wxPython. I use a treectrl
> and I want the item under the mouse to be highlighted ala listctrl (a
> nice obvious blue). Right now, treectrl makes the text bold and gives
> the item under the mouse the slightest hint of grey. Is there a way to
> change this color? I just want it to be very obvious which item is
> under the mouse when the user clicks.On Windows the wx.TreeCtrl uses the native widget and so you're stuck
with the native behavior which uses system and theme settings for the
selection colors. There are various generic tree widgets that are
implemented in Python and so will be more flexible or at least hackable.--
Robin Dunn
Software Craftsmanhttp://wxPython.org
I know HyperTreeList is one of them...I'm not sure what others there
are though.
···
On Feb 25, 1:48 pm, sunspider <sunspi...@gmail.com> wrote:
Thanks:)
Which are the generic tree widgets and how can I tell?
-------------------
Mike Driscoll
Hi,
···
On 25 February 2010 19:58, Mike Driscoll wrote:
On Feb 25, 1:48 pm, sunspider <sunspi...@gmail.com> wrote:
Thanks:)
Which are the generic tree widgets and how can I tell?I know HyperTreeList is one of them...I'm not sure what others there
are though.
wx.lib.agw.customtreectrl is the only generic tree widget I know of...
but maybe I am missing something, as usual.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
Really? Oops...disregard my disinformation then.
- Mike
···
On Feb 25, 3:20 pm, Andrea Gavana <andrea.gav...@gmail.com> wrote:
Hi,
On 25 February 2010 19:58, Mike Driscoll wrote:
> On Feb 25, 1:48 pm, sunspider <sunspi...@gmail.com> wrote:
>> Thanks:)
>> Which are the generic tree widgets and how can I tell?> I know HyperTreeList is one of them...I'm not sure what others there
> are though.wx.lib.agw.customtreectrl is the only generic tree widget I know of...
but maybe I am missing something, as usual.Andrea.
Hi Mike,
Hi,
>> Thanks:)
>> Which are the generic tree widgets and how can I tell?> I know HyperTreeList is one of them...I'm not sure what others there
> are though.wx.lib.agw.customtreectrl is the only generic tree widget I know of...
but maybe I am missing something, as usual.Andrea.
Really? Oops...disregard my disinformation then.
It's not disinformation at all, your post is actually pointing in the
right direction. The only difference is that HyperTreeList is a
Tree+List control (which is actually based on CustomTreeCtrl anyway),
not a pure TreeCtrl. I just wanted to point the OP to a more direct
solution.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
···
On 25 February 2010 22:06, Mike Driscoll wrote:
On Feb 25, 3:20 pm, Andrea Gavana <andrea.gav...@gmail.com> wrote:
On 25 February 2010 19:58, Mike Driscoll wrote:
> On Feb 25, 1:48 pm, sunspider <sunspi...@gmail.com> wrote: