Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALT+Key Not Captured By KeyPress?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00511073
Message ID:
00511394
Views:
17
Hi!

In the Init of the form:

public MyFormPublicObjectName
MyFormPublicObjectName = this
PUSH KEY
ON KEY LABEL Alt+F5 MyFormPublicObjectName.DoSomething()


In the Destroy of the form:

POP KEY


This way ON KEY LABEL will define Alt+F5 functionality only for this form. If you have child forms, each should use PUSH KEY CLEAR/POP KEY combination.

In addition, I like the suggestion aboiut popup menu, but it has disadvantage - you canot cover it for child forms by the way you can do this winth ON KEY LABEL commands (PUSH/POP approach).

HTH.

>Craig,
>
>Thanks for the suggestion, but that's not a viable option for the application I'm working on... I shall have to ponder this more...
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform