Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrow key fails in grid?
Message
De
15/02/2006 04:33:50
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01096336
Message ID:
01096422
Vues:
15
>if the user clicks on the gridForm (thus ensuring it has focus) does it still not function?
>The user clicks on the grid, then uses the arrow keys. And it still doesn't work.
>
>If so, check your other code to see if you are overriding the UpArrow .
>
>I checked all the keypress events and the textbox in the grid had keypress event implemented as follows:
>
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>SET STEP ON
>IF ((m.nKeyCode >= ASC("A") AND m.nKeyCode <= ASC("Z")) ;
>	OR (m.nKeyCode >= ASC("a") AND m.nKeyCode <= ASC("z")) ;
>	OR (m.nKeyCode >= ASC("0") AND m.nKeyCode <= ASC("9")) ;
>	OR INLIST(m.nKeyCode,ASC("'"),ASC("."),ASC("?"),ASC("!"), ;
>		ASC("*"),ASC(["]))) ;
>THEN
>
>	&& do something
>ELSE
>	DODEFAULT(m.nKeyCode, m.nShiftAltCtrl)
>ENDIF 	
>
>
>This doesn't stop arrow keys as you can see.

Dawa,
Remove dodefault(...). It'd do default anyway unless there is a NODEFAULT:)
I'd hunt a for a NODEFAULT, possibly in BeforeRowColChange.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform