Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamically change the backcolor of a TreeView
Message
De
12/07/2005 10:38:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01031609
Message ID:
01031656
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform