>There's still some quirks - it activates the code in NodeClick when I press space, but I can't get it to react to Enter - pressing it while on a node, produces no effect. No event gets triggered, neither KeyUp, nor KeyDown, nor KeyPress. I'll probably try using form's KeyPress event and try to manipulate the TreeView from there, but I think it may get even harder.
That's weird, Dragan. I've tried the code again here and it seems to be working properly; even pressing ENTER. The only problem I found now was that seldom, when clicking on a node, the MouseDown and the NodeClick events don't seem to fire - but the node gets selected (?!?).
If you want, I can send you the Form I tested so that we can see if it works there too (or, if you wish, you can send me the Form you're working on).
Which Vfp version are you using? Just a comment, if you're using 5.0a, you should also put this code in the Load of your Form to get the HitTest working properly:
=sys(2333,0)
regards,
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