Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView and KeyPress - who has it
Message
From
01/03/1998 16:59:29
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brazil
 
 
To
27/02/1998 17:47:16
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00072540
Message ID:
00082000
Views:
29
>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
Map
View

Click here to load this message in the networking platform