Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Act on a DoubleClick event
Message
From
03/06/2005 06:05:12
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01019702
Message ID:
01019745
Views:
16
here is the code I put in the keypress of my form to exit if I press the ESC key
LPARAMETERS nKeyCode, nShiftAltCtrl
If Empty(nKeyCode)
	Return
EndIf 	
If nKeyCode = 27 
	Release thisform
	Return 
EndIf 	
I was sure I have set the keypreview property of the form to .T. but I hadn't !!!
So I imagine it is not necessary :-) I did it last year so i don't remember exactly but I don't want to mix you up more than you'll probably are :-))

Anyway this property works for the keypress events,
if it is set to .t. the form intercepts the keypress events before the activecontrol does on the contrary the form does not intercept the keypress event.

About other events, such as doubleclick, I don't think you can prevent you from putting code in each control which behaves to your grid.
Previous
Reply
Map
View

Click here to load this message in the networking platform