Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling the Escape Key
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00196820
Message ID:
00197595
Views:
15
> Have you tried setting the Cancel property on the cancel button to .F.
> when in find mode and back to .T. when not in find mode? Maybe you could
> assing .T. to another controls Cancel prop while in Find mode.
>
> Just a thought....

Excellent idea! However it does not make a differance. In my original logic I had a KeyPress Method on the field that accepted the key value. This Method as the following logic.


LPARAMETERS nKeyCode, nShiftAltCtrl

if nKeyCode = 27 && Escape key
thisform.dept.number.lostfocus()
endif

If I comment out the LostFocus call, the program works normally (just ignors the Escape key on this field). With this line in, it shuts the program down. (dept.nubmer is the contain and field that accept the response from the user.) Even if I durn off the Cancel on the "Cancel Button" in the form Designer, this is still a problem.

Any other suggestions?

Norm
____________________________________________

Norm Peterson

It's a dog eat dog world out there,
and I'm wear'n milk bone underware!
Previous
Reply
Map
View

Click here to load this message in the networking platform