General information
Category:
ActiveX controls in VFP
Hi Terry,
>I agree - I think SelectedItem is just an imbedded mostly readonly
>handle. I myself have never thought of it as a property that can be >assigned something.
I think you're mixing up the Treeview.SelectedItem property itself and the object that it references. There's obviously the equivalent of a VFP SelectedItem_Assign in there to prevent users assigning anthing other than a tree.node, .NULL. or .F. to it. But when you access properties and methods of the .SelectedItem you are just accessing the node to which it refers and can manipulate it in exactly the same way as any Tree node.
>I have also had problems with SelectedItem=.NULL.. It seemed to change [for >a while] the node's data type from object to a null!
Is this simply because the .SelectedItem property may be set implicitly (for example by mouseclick) by the treeview itself ?
Regards,
Viv
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only