Colors for TTreeView, one for each item!?

Colors for TTreeView, one for each item!?

Postby JC » Wed Sep 03, 2008 5: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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby JC » Thu Sep 04, 2008 7: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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby James Bott » Thu Sep 04, 2008 7: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby JC » Thu Sep 04, 2008 8: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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby JC » 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!
Image
Image
Image
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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby James Bott » Fri Sep 05, 2008 3: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Colors for TTreeView, one for each item!?

Postby Dietmar Jahnel » Sun Aug 09, 2009 12:11 pm

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

Regards,
Dietmar
User avatar
Dietmar Jahnel
 
Posts: 83
Joined: Mon Oct 17, 2005 10:33 am
Location: Austria


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 56 guests