Treeview node color 
Author Message
 Treeview node color

Hi!

Is it possible to make node of specific color in TreeView? (Rectangle
backcolor where text is, but ideally whole line.)

I don't care if it's API, just need to be reliable.

--
Ivan
----------------------
Please keep it in newsgroup



Sun, 03 Apr 2005 01:59:14 GMT  
 Treeview node color
On Tue, 15 Oct 2002 17:59:14 GMT, "Ivan Demkovitch"

Quote:

> Hi!

> Is it possible to make node of specific color in TreeView? (Rectangle
> backcolor where text is, but ideally whole line.)

> I don't care if it's API, just need to be reliable.

To get the whole line, I think you'd have to do the painting yourself,
but for just the text rectangle, for example,

MyNode.BackColor = vbCyan

TreeView1.SelectedItem.BackColor = vbGreen

Gale.



Sun, 03 Apr 2005 02:49:04 GMT  
 Treeview node color

Quote:

> MyNode.BackColor = vbCyan

> TreeView1.SelectedItem.BackColor = vbGreen

> Gale.

LOL,

I remember that I've seen this property but when sit down to do this I
somehow overlooked it...



Sun, 03 Apr 2005 02:56:32 GMT  
 Treeview node color
No, wrong shot.

I don't have this property in intellisence and typing manually gives error.
May be it has something to do with versions?

I'm on VB6 sp5 (Win2k)

P.S. But I remeber seeing it..


Quote:
> On Tue, 15 Oct 2002 17:59:14 GMT, "Ivan Demkovitch"

> > Hi!

> > Is it possible to make node of specific color in TreeView? (Rectangle
> > backcolor where text is, but ideally whole line.)

> > I don't care if it's API, just need to be reliable.

> To get the whole line, I think you'd have to do the painting yourself,
> but for just the text rectangle, for example,

> MyNode.BackColor = vbCyan

> TreeView1.SelectedItem.BackColor = vbGreen

> Gale.



Sun, 03 Apr 2005 03:00:15 GMT  
 Treeview node color
On Tue, 15 Oct 2002 19:00:15 GMT, "Ivan Demkovitch"

Quote:

> No, wrong shot.

> I don't have this property in intellisence and typing manually gives error.
> May be it has something to do with versions?

> I'm on VB6 sp5 (Win2k)

> P.S. But I remeber seeing it..

I also have VB6 SP5, but Win 98 SE.

According to the object browser:

Library MSComctlLib
    C:\WINDOWS\SYSTEM\MSCOMCTL.oca
    Microsoft Windows Common Controls 6.0 (SP4) <====

For the OCX, in Windows Explorer, the Properties/Version tab shows

6.00.8862
Windows Common Controls ActiveX Control DLL

Comments: May 11, 2000

Gale.



Sun, 03 Apr 2005 03:26:40 GMT  
 Treeview node color
Yes,

It was stupid to use VB5 common controls...
:-(


Quote:
> On Tue, 15 Oct 2002 19:00:15 GMT, "Ivan Demkovitch"

> > No, wrong shot.

> > I don't have this property in intellisence and typing manually gives
error.
> > May be it has something to do with versions?

> > I'm on VB6 sp5 (Win2k)

> > P.S. But I remeber seeing it..

> I also have VB6 SP5, but Win 98 SE.

> According to the object browser:

> Library MSComctlLib
>     C:\WINDOWS\SYSTEM\MSCOMCTL.oca
>     Microsoft Windows Common Controls 6.0 (SP4) <====

> For the OCX, in Windows Explorer, the Properties/Version tab shows

> 6.00.8862
> Windows Common Controls ActiveX Control DLL

> Comments: May 11, 2000

> Gale.



Sun, 03 Apr 2005 03:39:31 GMT  
 Treeview node color
On Tue, 15 Oct 2002 19:39:31 GMT, "Ivan Demkovitch"

Quote:

> Yes,

> It was stupid to use VB5 common controls...
> :-(

Ha ha! My first LOL in ages. <g>

Gale.



Sun, 03 Apr 2005 04:15:54 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Can treeview nodes change color?

2. HOW TO: set color of nodes in TreeView

3. change treeview selected node color

4. Different colors for Treeview nodes?

5. Color of Nodes in a treeview

6. Changing the Color of a Treeview Node

7. HOW TO: set color of nodes in TreeView

8. TreeView : How to set a different color to node's Caption

9. Node Text Color in Treeview Control

10. TreeView Nodes With Multiple Colors

11. TreeView : How to set a different color to node's Caption

12. TreeView Specific Node Color

 

 
Powered by phpBB® Forum Software