Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KeyPreview doesn't work with Treeview on form
Message
 
 
À
30/07/2001 04:09:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00534876
Message ID:
00537086
Vues:
29
Hi!

Just try, or find good manual. The keys chart in the INKEY() function help might help you too. Try - put the messagebox in the KeyPress of treeview and display codes. Than press function keys you require. Note that some key codes ranges will interfer, so use also API functions o get states of keys like SHIFT, CTRL and ALT. I do not know details, but just know the approach.

HTH.

>Hi Vlad,
>
>Thanks for your suggestions. I'm most attrackted to use the treeview's KeyPress-event. I found out that the KeyPress-event is used for selecting a node from which the text matches the keys pressed. All I have to do now is to capture the functionkeys. Here comes something tricky, The KeyPress-event from the treeview uses ascii-codes but what are the ascii-codes from the functionkeys?
>Is there a way to recognize those keys and trigger the forms KeyPress-event?
>
>Hope to hear from you, or someone else
>
>Erwin
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform