General information
Category:
ActiveX controls in VFP
Title:
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
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