Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamically change the backcolor of a TreeView
Message
From
12/07/2005 10:38:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01031609
Message ID:
01031656
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>Hi all
>
>I have tried to modify the backcolor of my text controls. Sticking out like a sore thumb is the TreeView which has the default white backcolor.
>
>Can I change this backcolor?
>
>I did give the properties of the TV a look-see but couldn't find it.
>
>Please advise.

I don't suggest playing with treeview colors (because it's ill behaving). However if you'd do:
With myTree
* Add nodes
  oNode = .nodes.Add(m.lcParentID,tvwChild,m.lcNodeID,m.lcNodeText)
  oNode.BackColor = m.lnBackColor
* ...
    Declare integer SendMessage in win32API ;
    integer hWnd,  integer Msg, integer wParam, integer lParam

    TVM_SETBKCOLOR = 4381
    SendMessage(.hWnd,TVM_SETBKCOLOR, 0, m.lnBackColor)  

Endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform