View previous topic :: View next topic |
Author |
Message |
danm Intermediate
Joined: 29 Jun 2004 Posts: 170 Topics: 73
|
Posted: Fri Nov 11, 2005 12:06 pm Post subject: Keylist |
|
|
Code: |
I create a help panel HELPPAN with scrollable area:
)PANEL KEYLIST (KEYSCR APPL)
)ATTR DEFAULT(%+_)
} AREA(SCRL) EXTEND(ON)
)BODY EXPAND(\\)
+COMMAND ==>_CMD +
%\ \Title of panel\ \
}AREA1
)AREA AREA1
Line 1...
Line 2...
....
....
Line 100
)END
Keylist KEYSCR is defined as:
Key Definition Format Label
F1 . . .
F2 . . .SPLIT LONG Split
F3 . . .EXIT SHORT Exit
F4 . . .
F5 . . .
F6 . . .
F7 . . .LEFT SHORT PrvPage
F8 . . .RIGHT SHORT NxtPage
F9 . . .SWAP LONG Swap
F10 . .
F11 . .
F12 . .CANCEL SHORT Cancel
In panel ABC, I define HELPPAN as the help panel as well as an action:
)PANEL KEYLIST (KEYABC APPL)
.......
)BODY
.....
@ Action1 @ Action2.... @ Help
)INIT
.HELP = HELPPAN
......
REXX Code to display HELPPAN from action bar:
If ZCmd = 'HELPPAN' then do
Address ISPEXEC "DISPLAY PANEL(HELPPAN)"
End
|
I press PF1 on the ABC panel, the HELPPAN panel is displayed. When I press PF7 and PF8, the text is scrolled forward and backward correctly.
When I select the action help from the action bar, the HELPPAN panel is displayed. However, when I press the PF7 and PF8 key, I got the "LEFT is not active" and "RIGHT is not active" error message. If I change the PF7 and PF8 definition to "UP" and "DOWN" in the KEYSCR keylist, then the scrolling works again.
How can I make the HELPPAN work via the action bar without changing the definition of PF7 and PF8? |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
danm Intermediate
Joined: 29 Jun 2004 Posts: 170 Topics: 73
|
Posted: Fri Nov 11, 2005 1:20 pm Post subject: |
|
|
Kolusu,
Yes, I did a search before posting my question. The problem is the PF7 and PF8 keys defined on the keylist KEYSCR works when using PF1 to display the HELPPAN panel, but doens't work when display HELPPAN via action bar. |
|
Back to top |
|
 |
|
|