Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you control the font in a TreeView control
Message
De
17/03/2003 18:45:19
 
 
À
17/03/2003 14:01:48
Bob Thomsen
Fabtrol Systems, Inc
Eugene, Oregon, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00766659
Message ID:
00766809
Vues:
22
Hi Bob.

There doesn't appear to be any font properties we can modify at run-time either.

Sure there are. Its just that the TreeView (like many activeX controls) has a font onject that controls the font. Run your form with the TreeView in it and grab an object reference to the TreeView by using O = SYS( 1270 ) or the code below:
oTree = _Screen.Activeform.otree
onode = otree.selectedItem
*** Make the font on the selected node bold
onode.Bold = .t.
*** Or change its color and make it red
oNode.ForeColor = 255
*** Now change the font for the entire treeView
ofont = otree.font
ofont.Name = 'Comic Sans MS'
*** Make it big
ofont.size = 16
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform