Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
Disallowing checking of nodes in Treeview
Making a wrapper for the Treeview object, I'v stumbled over a problem. I'd like to be able to disallow checking of individual nodes in the tree, and have so far not been able to do this.
I've tried using the NodeCheck() event of the Treeview and setting the .Checked property of the passed node, but as soon as the event terminates, the node is again checked. Even the UI is checking, unchecking and checking back. Nice event handling... :-(
In the NodeCheck event, I've also tried adding NODEFAULT, returning .F., calling DOEVENTS() and trying _VFP.AutoYield but nothing has worked. Don't think I've tried every combination of this, but...
The only way I can think of now is making a hack using a timer, but that's something I'd really like to avoid.
Is there something I've missed?
Thankful for any ideas on this...
Arne
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement