Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to prevent some keypress's when focused to the grid
Message
 
À
29/03/2004 11:46:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00890459
Message ID:
00890484
Vues:
23
Hi Again,
i've tried something and found some codes from vfp help related INLIST() and below codes was solved my problem :) Thanks for the idea !
If Type("_Screen.ActiveForm.ActiveControl")=="O"  
  LOCAL loActiveControl
     m.loActiveControl = _Screen.ActiveForm.ActiveControl
	If m.loActiveControl.BaseClass = "Grid"
		If Inlist(nKeyCode, -1,-3,-5,-7,-8)
			Nodefault
			Return
		Endif
	Endif
Endif
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform