FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Colors for TTreeView, one for each item!?
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Colors for TTreeView, one for each item!?
Posted: Wed Sep 03, 2008 05:45 PM

Dear friends!

Exists a way to change the colors of font at treeview but, one color for each item?

Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Colors for TTreeView, one for each item!?
Posted: Thu Sep 04, 2008 07:35 PM

anybody?

Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Colors for TTreeView, one for each item!?
Posted: Thu Sep 04, 2008 07:55 PM

Julio,

Have you ever seen that on a tree control before? I doubt that it is possible as it would require a different font for each item.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Colors for TTreeView, one for each item!?
Posted: Thu Sep 04, 2008 08:02 PM
James Bott wrote:Julio,

Have you ever seen that on a tree control before? I doubt that it is possible as it would require a different font for each item.

James


Yes but, not in fivewin. I have used the setColor() method and setFont() too... but, has changed all tree.
Really, I want to make the nodes with bold style and another color different of the children. Some like this!
Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Colors for TTreeView, one for each item!?
Posted: Fri Sep 05, 2008 12:22 PM
James Bott wrote:Julio,

Have you ever seen that on a tree control before? I doubt that it is possible as it would require a different font for each item.

James

James, I found same examples of this TreeView. All they are very pretty!


Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Colors for TTreeView, one for each item!?
Posted: Fri Sep 05, 2008 03:15 PM

Julio,

Well, it seems that it can be done with the tree common control.

I have found some information about doing this with C here:

http://msdn.microsoft.com/en-us/library/bb761817(VS.85).aspx

But, it is beyond my knowledge and understanding of how to do it.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 83
Joined: Mon Oct 17, 2005 10:33 AM
Re: Colors for TTreeView, one for each item!?
Posted: Sun Aug 09, 2009 12:11 PM

Any news to this one?
I could use different fonts in TTreeView as well!

Regards,
Dietmar

Continue the discussion