| View previous topic :: View next topic |
| Author |
Message |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Feb 19, 2003 12:45 am Post subject: Turn off Function Keys |
|
|
I want to turn off the function keys which is displayed at the bottom of the mainframe window. The command | Code: | | "ISPEXEC SELECT PGM(ISPOPF) PARM(OFF)" | is working fine.
I want the function keys to be hidden in my PANEL. But on on other Screens. ie, When I use the SWAP Command, the function keys should be displayed in the other window. Is this Possible ?
Or,
In my system, I have the F9 function key mapped to SWAP Command. Can I capture this using .ZPFKEY variable whenever I press F9 Key. But the control didn't come back to the rexx routine whenever I press this key. I directly executed the SWAP command and displayed the second window.
Please give me your suggesstions.
Phantom |
|
| Back to top |
|
 |
sriramla Beginner
Joined: 22 Feb 2003 Posts: 74 Topics: 1
|
Posted: Sat Feb 22, 2003 1:08 am Post subject: |
|
|
I'm not sure about selective display/non-display of PF Keys. For your second question on capturing the PFKEY pressed, the "ordinary" panels
can't help much. They can capture only PF3/ENTER keys only.
It you really want to capture and process all PF keys by the application, define a dummy dynamic area and then throw the panel. Now the panel will not wait for PF3 or ENTER Key to be pressed. The moment any attention key is pressed, it will be stored in ZPFKEY. The following code can then be used to capture the key pressed.
ADDRESS ISPEXEC "VGET ZPFKEY"
say ZPFKEY
Hope this solves ur problem.
Sriram. |
|
| Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Sat Feb 22, 2003 12:58 pm Post subject: |
|
|
| You can't show keys on one split screen and not on others., That is a global setting. Intercepting keys probably has more to do with if your panel has a command line. PF keys are generally intercepted in response to entries in the command table for your application id, in conjunction with your KEYS or keylist settings. If you don't have a command line ( because you use )BODY CMD() ) then the PF keys generally do nothing. THere may be some system keys (swap, split, etc) that don't care if there is a command line or not. |
|
| Back to top |
|
 |
Bithead Advanced

Joined: 03 Jan 2003 Posts: 550 Topics: 23 Location: Michigan, USA
|
Posted: Sun Feb 23, 2003 9:18 am Post subject: |
|
|
If you want to selectively turn off PFKEYS for 1 application only, invoke it with the NEWAPPL parameter then clear out the PFKEY settings in that application as follows:
SET ZPF09 =
ADDRESS ISPEXEC
"VPUT ZPF09 PROFILE" |
|
| Back to top |
|
 |
|
|
|