Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can Progress run a function key?

Status
Not open for further replies.

srmcmains

Programmer
May 15, 2003
9
US
Progress 9.1B

I was wondering if progress could make a function key run. I have a program called altf6.p. I will make an accelerator key run, ctrl-6, which will run the altf6.p program. Why is this not working. What alt-f6 does is change the focus of a Syteline window. Any help would be greatly appreciated.

This is my code in the altf6.p program. apply 'alt-f6'.
 
You probably want something like ...

ON ALT-F6 OF C-Win /* or wherever */
DO:
APPLY 'entry' TO some-widget.
RETURN NO-APPLY.
END.


ON CTRL-6 OF C-Win /* or wherever */
DO:
RUN altf6.p.
END.

The RETURN NO-APPLY is the important bit.

HTH,
Mike.

 
Are you able to get an alt-key function to work. I can't. I can get f1 or something like that to work, but a alt-keystroke will not work. What am I doing wrong. This is the way I have it coded.

DO:
APPLY 'alt-f6'.
RETURN NO-APPLY.
END.

If I would do apply 'f1'. Then I would get help to come up.
 
You might also look to see what function alt-f6 is calling and call that instead. For example, on Windows F2 is GO (F1 in unix). You can say apply "GO" instead of apply "F2". To find out what the function name is, use this code:

REPEAT:
READKEY.
DISP KEYLABEL(LASTKEY) KEYFUNC(LASTKEY)
WITH DOWN STREAM-IO.
DOWN.
END.

Run this in the editor and just start hitting keys. Hope that's of some help. :)


Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top