Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 To: Geoff Franklin
  Where is Geoff Franklin?
 Birmingham
 United Kingdom
 Geoff Franklin
 Tags
Subject: RE: on key label "Geoff"
Thread ID: 33506 Message ID: 33793 # Views: 4 # Ratings: 0
Version: Visual FoxPro 6 Category: General VFP Topics
Date: Wednesday, December 03, 2003 6:35:32 PM         
   


> > > * --- Nill out all function key operations to be custom set within the application as required.
> > > ON KEY LABEL F1
> > > ON KEY LABEL F2
> > > ON KEY ...
>
> PUSH KEY CLEAR is a quicker and neater alternative. It also allows you to POP KEY ALL afterwards and restore the settings you had before you started. This pair of commands use a stack to store and retrieve key assignments.
>
> The danger with ON KEY LABEL is that it's global. If you're not very careful about clearing the assignments you find that the key is still active in the rest of the app and in the development environment afterwards. A real pain if it's F1 that's reassigned.
>
> Geoff Franklin
> www.alvechurchdata.co.uk


Hi,
I do not assign values to the f keys in the main.prg, just clear them out. Then I use the KeyPress event
within the form, or the control to call what I want. Actually since F1 is kind of the universal help key,
I do assign it to call custom help systems within my application and decare it in the main.prg.
You are correct about the PUSH KEY CLEAR, and POP KEY ALL. The only time I would use these
is to save current assigned ON KEY LABLE setting, make changes to the ON KEY LABLE assignments
for a particular special part of my application and then restore the original assignments back.

Pete from the Great White North. (Only in Canada, ay.) Over and Out ...


ENTIRE THREAD

on key label Posted by Rommel Alix @ 11/27/2003 5:27:51 PM
RE: on key label Posted by Karben Selim Mejia @ 11/27/2003 7:08:27 PM
RE: on key label Posted by Rommel Alix @ 11/28/2003 2:35:09 AM
RE: on key label Posted by Pete Sass @ 11/27/2003 7:17:00 PM
RE: on key label Posted by Rommel Alix @ 11/28/2003 2:23:52 AM
on key label "F1 sure you can" Posted by Pete Sass @ 11/28/2003 2:11:35 PM
RE: on key label "F1 sure you can" Posted by Rommel Alix @ 11/29/2003 2:57:27 AM
RE: on key label "F1 sure you can" Posted by Geoff Franklin @ 12/2/2003 7:40:22 AM
RE: on key label "Geoff" Posted by Pete Sass @ 12/3/2003 6:35:32 PM
RE: on key label "Geoff" Posted by Geoff Franklin @ 12/4/2003 6:15:13 PM