changing color of just one cell in HyperTreeList?

I can’t completely tell if HyperTreeList doesn’t already support this (as the docs often trail off saying to check customtreelist or other superclasses)… but I know that when you highlight a row it get’s colored, and there is a function that supposedly will color just a specific column… so since I want just certain cells to be colored… I think I should be able to figure out how to mark just certain cells in a column to be colored… if this isn’t already supported.

So, am I overlooking/not-seeing some key API? Do I have to write this myself?

Thanks!

Hi Nathan,

···

On Monday, June 23, 2014 6:37:04 PM UTC-5, Nathan McCorkle wrote:

I can’t completely tell if HyperTreeList doesn’t already support this (as the docs often trail off saying to check customtreelist or other superclasses)… but I know that when you highlight a row it get’s colored, and there is a function that supposedly will color just a specific column… so since I want just certain cells to be colored… I think I should be able to figure out how to mark just certain cells in a column to be colored… if this isn’t already supported.

So, am I overlooking/not-seeing some key API? Do I have to write this myself?

Thanks!

Looking at the wxPython demo, I think you should take a look at the OnItemBackground method. In it you will find a call to **SetItemBackgroundColour ** which seems to do what you want.

  • Mike

Mike,
Thanks for the pointer. I tried calling that from the demo, from the right-click menu, but only the first-column cell gets colored, or the whole row if I have the option TR_FULL_ROW_HIGHLIGHT enabled. Guess I’ll have to dig into the code!

···

On Tuesday, June 24, 2014 6:43:13 AM UTC-7, Mike Driscoll wrote:

Hi Nathan,

On Monday, June 23, 2014 6:37:04 PM UTC-5, Nathan McCorkle wrote:

I can’t completely tell if HyperTreeList doesn’t already support this (as the docs often trail off saying to check customtreelist or other superclasses)… but I know that when you highlight a row it get’s colored, and there is a function that supposedly will color just a specific column… so since I want just certain cells to be colored… I think I should be able to figure out how to mark just certain cells in a column to be colored… if this isn’t already supported.

So, am I overlooking/not-seeing some key API? Do I have to write this myself?

Thanks!

Looking at the wxPython demo, I think you should take a look at the OnItemBackground method. In it you will find a call to **SetItemBackgroundColour ** which seems to do what you want.

  • Mike