Author |
Message |
Ivan Demkovitc #1 / 7
|
 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 |
|
 |
Gale Gree #2 / 7
|
 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 |
|
 |
Ivan Demkovitc #3 / 7
|
 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 |
|
 |
Ivan Demkovitc #4 / 7
|
 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 |
|
 |
Gale Gree #5 / 7
|
 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 |
|
 |
Ivan Demkovitc #6 / 7
|
 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 |
|
 |
Gale Gree #7 / 7
|
 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 |
|
|