Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView and KeyPress - who has it
Message
De
01/03/1998 16:59:29
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brésil
 
 
À
27/02/1998 17:47:16
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00072540
Message ID:
00082000
Vues:
33
>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,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform