Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBI Tech ctTree Control Problem
Message
General information
Forum:
Visual FoxPro
Category:
ActiveVFP
Miscellaneous
Thread ID:
01287375
Message ID:
01287525
Views:
8
It looks like you if the treeview is already built, you would need to select the parent node first (make it the selected node) and then add the child. Look at Adding Nodes to the control and adding nodes as a parent node is expanded in help there are more examples there.


>I thought of that, but then I would have to iterate through the entire tree from top to bottom looking for the
>PK value. There doesn't seem to be any alternative though.
>
>With a standard ActiveX TreeView control I could do:
>
>
>oNode = .TreeView.Nodes(parentkeyvalue)
>.TreeView.Nodes.Add(oNode.Key,4,NewChildKey, 'Child Text)
>
>
>But the DBI control doesn't seem to support the typical collection syntax.
>
>It's sort of disheartening since I paid $400 for the set of controls and I find out they don't follow standards.
>
>
>
>
>
>
>>I have added a series of nodes to the tree. I then want to go back and add additional nodes as children of pre-existing nodes.
>>
>>Use the Node Cargo to store the primary key of from the underlying data and use that to find the child records.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform