Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01041391
Message ID:
01041583
Vues:
19
Try

thisform.treeview1.nodes(1).bold =
thisform.treeview1.nodes(1).forecolor =
thisform.treeview1.nodes(1).backcolor =

You can see all of these in the debugger with Intellisense.

Jim

>I know this.
>
>I want to change the font of a node
>
>Any idea how?
>
>
>
>>Yes, you can change the font name, size, and bold attributes. Assuming a treeview on a form:
>>
>>thisform.Treeview1.Font.Name = lcFontName
>>thisform.Treeview1.Font.Size = lnFontSize
>>thisform.Treeview1.Nodes.Item(lnItem).Bold = .T.
>>
>>where lcFontName is the the name of the font, lnFontSize is the font size (interestingly it is seen in the debugger as a currency type), and lnItem is the node number or the nodekey. I don't believe that you can set to italic or underline.
>>
>>You can also change the background and foreground colors of the nodes.
Jim Nelson
Newbury Park, CA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform