Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you control the font in a TreeView control
Message
From
17/03/2003 18:45:19
 
 
To
17/03/2003 14:01:48
Bob Thomsen
Fabtrol Systems, Inc
Eugene, Oregon, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00766659
Message ID:
00766809
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform