Yes, The ALT-key on buttons is the Windows way. Whenever possible, users should learn the windows way.
________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Bill Downall Sent: Thursday, May 13, 2010 11:02 AM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: Snagging F2 - Snagged! Doug, Heads-down typing client has less finger-work to do pressing Alt-S, than reaching for the F2 key. She can learn to make your legacy-matching trick obsolete. Bill On Thu, May 13, 2010 at 11:58 AM, Doug Hamilton <[email protected]<mailto:[email protected]>> wrote: Karen - try it - it works :) Mapping F2 to the hot key triggers the button. I got it working thanks to you and Larry: I suggest dropping a button on your form that contains the EEP code you want. Set the caption of the button to have an accelerator character (eg, set it to &Save And Add). Then use: SET KEYMAP [F2] = [ALT]S in your form startup. This will have the effect of "clicking" the button when the user hits [F2]. Remember to SET KEYMAP [F2] OFF in the form's ON CLOSE EEP, or you will have a very confused user. I placed a pushbutton on the form with the caption: &Add Row The OnBeforeStart EEP for the form includes: SET KEYMAP [F2] = [ALT]A Hitting F2 "clicks" the Add Row button and fires the EEP. voila! Thanks again, Doug [email protected]<mailto:[email protected]> wrote: Doug: I haven't tried this... What if you put a button on the form for "Add a row", with the A underlined so it is a hot key. If you keymapped the F2 to Alt-A, would that trigger the button? Karen Hi List - I have a client who does a lot of heads-down data entry and is used to hitting F2 to enter a new row. I've thought of putting a button after the series of fields into which she's entering, but she doesn't always use all the fields, so reaching over, mousing around, clicking...etc is a productivity killer for her. I'd like to snag the F2 keypress and run an EEP (for data verification, etc) before the row gets added. I looked at SET KEYMAP but that only reassigns keys. Any ideas? Test for LASTKEY on exit from each field? Will F2 fire an On Exit EEP? TIA Doug

