Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange problem with Treeview SelectedItem property
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00812987
Message ID:
00814820
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform