Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
F5 and KeyPress Event
Message
From
05/06/2003 00:34:55
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00796465
Message ID:
00796506
Views:
15
I've check it, and it seems like a Bug for me too,but... if the problem is the closable property, maybe a NODEFAULT could work.
public oForm
oForm = CREATEOBJECT("myForm")
oForm.Show()
DEFINE CLASS myForm as FORM
   KeyPreview = .t.
   Closable = .T.
   PROCEDURE KeyPress
   LPARAMETERS nKeyCode, nShiftAltCtrl
     MESSAGEBOX(nKeyCode)
   ENDPROC
   PROCEDURE QueryUnload
      NODEFAULT
   ENDPROC
ENDDEF
Of course, this is not a complete Workaround, but at least, he could use the F5 key, while SP1 is released.


>If I remember correctly, it's a bug in VFP8. The KeyPress event doesn't fire for F5 if Closable Property of a Form set to .F. I'm unaware about any workarouns.

>>I can't capture F5 on keypress event of a textbox, everything works fine on VFP7. This is the code:
>>
>>IF nKeyCode = -4
>> Do something....
>>
>>ENDIF
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform