|
View previous topic :: View next topic
|
| Author |
Message |
Furion
New User
Joined: 27 Nov 2007 Posts: 14 Location: China
|
|
|
|
| I invoke the TBDISPL service to show some data. I wonder is there's anyway to redefine the function keys. As we know, the PF07 and PF08 are used for page up and page down. Can we redefine these function keys? |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
| Back to top |
|
 |
Pedro
Global Moderator

Joined: 01 Sep 2006 Posts: 2624 Location: Silicon Valley
|
|
|
|
That thread ends with:
| Quote: |
| It still doesn't work |
---
| Quote: |
I invoke the TBDISPL service to show some data. I wonder is there's anyway to redefine the function keys. As we know, the PF07 and PF08 are used for page up and page down. Can we redefine these function keys?
|
Can you clarify your question? Are you trying to change PF07 to something other than UP?
What happens when you use the KEYS command? It should let you change the meaning of the keys. |
|
| Back to top |
|
 |
Furion
New User
Joined: 27 Nov 2007 Posts: 14 Location: China
|
|
|
|
| Furion wrote: |
Can you clarify your question? Are you trying to change PF07 to something other than UP?
What happens when you use the KEYS command? It should let you change the meaning of the keys. |
In fact I want to know how to control the function keys in rexx program.
As we know, PF07 is used for page up and PF10 is not defined defaultly.
All that is defined by the system. Suppose now I want the PF07 to do some other things or I want PF10 to scroll left in my rexx.
I have code &PFKEY=&ZVERB in my panel definition. And I handle the PFKEY in my rexx program like if PFKEY='LEFT' then do...
But it does not work fine. |
|
| Back to top |
|
 |
ofer71
Global Moderator

Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Take a look at the )PANEL section with the KEYLIST keyword.
O. |
|
| Back to top |
|
 |
Pedro
Global Moderator

Joined: 01 Sep 2006 Posts: 2624 Location: Silicon Valley
|
|
|
|
I had asked about the KEYS command... it gives insight in how the keys are defined.
When you issue KEYS and the resulting panel has title of "PF KEY DEFINITIONS AND LABELS", then:
- just use VPUT to set ZPF07.
When you issue KEYS and the resulting panel has title of "abc Keylist xyz Change", then:
- the panel is defined with )PANEL KEYLIST(xyz), and it is harder to change. In that case, you should rebuild the keylist definitions. I do not think you can change it easily with rexx.
--------
| Quote: |
| In fact I want to know how to control the function keys in rexx program. |
Actually, I recommend against that approach. ISPF lets users customize their PF key settings. Users are irritated if their key definitions are changed by the program. The developer should set the keys properly when the an application is created. The key definitions are delivered when the product is installed. Afterwards, the user can change the keys and the application should not care how the user customizes. But if the user cripples the application, they would need to remove their customization. |
|
| Back to top |
|
 |
|
|