Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView Control and the Keyboard
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00333310
Message ID:
00333454
Vues:
17
>We are using the TreeView Control as our menu system. This is a converted project from Fox26 to Vfp6 and as such we have been requested to allow as much keyboard interaction as possible.
>
>My problem is firing the NodeClick event of the TreeView with the Enter key or Spacebar. It doesn't fire any of the keyboard events!
>
>I have
>
>Form.KeyPreview = .T.
>Code in the Form.KeyPress event
>
>Code in the Tree.KeyDown
>Code in the Tree.KeyPress
>
>None of these events are fired with the Space and Enter keys.
>
>MSDN (for VB) states that the KeyPreview property should force the keypress to the form but some keys seem to be being swallowed by the Tree.
>
>Any Ideas?

Yes, I have the same experience and don't see any solution yet. From this point of view the TreeView is shity object...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform