Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview Node - can text be made bold?
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01446152
Message ID:
01446324
Views:
57
>>You can use the checkboxes feature in a treeview control to indicate that multiple nodes are selected, but I also need to mark one or more nodes as a subset of the selected nodes. I was hoping I could make the font for a node bolded, but I'm not seeing that as a property of the node. Hopefully, I'm just missing it. Can anyone provide direction here?
>>
>
>Are you using the MS "MSComctlLib.TreeCtrl.2" tree view, or something else?
>
>
>
>IF VARTYPE(_screen.tree) = 'O'
>	_screen.RemoveObject('tree')
>ENDIF
>_screen.AddObject('tree','myTreeContainer')
>_screen.tree.Visible = .T.
>
>LOCAL cKey, oNode
>cKey = SYS(2015)
>oNode = _screen.tree.oleTree.Nodes.Add(,1,m.cKey,'TestRoot',0)
>oNode.Expanded = .T.
>oNode = _screen.tree.oleTree.Nodes.Add(m.cKey,4,SYS(2015),'TestNode',0)
>oNode.Bold = .T.
>RETURN
>
>DEFINE CLASS myTreeContainer as Container
>	BackStyle = 0
>	BorderWidth = 0
>	Width = 200
>	ADD OBJECT oleTree as oleControl WITH ;
>		OleClass = 'MSComctlLib.TreeCtrl.2', Height = 150
>ENDDEFINE
>
>
>
>hth
>-Stefan

I should have just gone ahead and tried Bold. I tried FontBold, but that's more of a VFP property name. And I inspected the node object in the debugger (I pass it from the NodeCheck method to a method on my form), but all it showed as properties was Selected and Checked. I thought that was odd, but figured maybe it just didn't have too many properties. There was some documentation on the Internet, but a lot of this was .NET stuff and I was unclear if that was the same control or not. Anyway, plain old Bold worked fine. Thanks.
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Previous
Reply
Map
View

Click here to load this message in the networking platform