|
View previous topic :: View next topic
|
| Author |
Message |
Pragati Soni
New User
Joined: 18 Jan 2008 Posts: 47 Location: India
|
|
|
|
I have coded the below code(The alignment is disturbed here, the already existing tab/space is ignored):
| Code: |
)PANEL KEYLIST(ISRHELP ISR)
)ATTR
@ TYPE(TEXT) INTENS(HIGH) COLOR(GREEN) SKIP(ON)
$ TYPE(INPUT) INTENS(LOW) COLOR(BLUE)
)BODY
%----------------------QHTOOL HELP PANEL-------------------------------%
%COMMAND ====> _ZCMD %
+%OPCODE LIST% +
+@CONST+ @*+ @IF+ @HOLDP+ +
+@END-CONST+ @ACTY+ @ELSE+ @READ+ +
+@VAR+ @MOVE+ @END-IF+ @READF+ +
+@END-VAR+ @ADD+ @SECTION+ @READL+ +
+@PRINT+ @SUB+ @PERFORM+ @READEQ+ +
+@END-PRINT+ @MUL+ @GOTO+ @READGE+ +
+@INCL+ @DIV+ @EXIT+ @WRITE+ +
+@INIT+ @STOP+ @NOOP+ @DISPLAY+ +
+
@PRINTLN+ +
)END
|
The panel is shown like this:
| Code: |
----------------------QHTOOL HELP PANEL------------------------------
COMMAND ===>
OPCODE LIST
CONST * IF HOLDP
END-CONST ACTY ELSE READ
VAR MOVE END-IF READF
END-VAR ADD SECTION READL
PRINT SUB PERFORM READEQ
END-PRINT MUL GOTO READGE
INCL DIV EXIT WRITE
INIT STOP NOOP DISPLAY
PRINTLN |
Currently, the cursor remains at the command line only. My requirement is when I press tab, the cursor should come at the first position of other variable and so on.
For instance on pressing tab first time the cursor should come to 'CONST', if I press tab again it should come to '*' and then to 'IF' and so on.
Please help.
Thanks,
Pragati |
|
| Back to top |
|
 |
ofer71
Global Moderator

Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
How do you want the cursor to tab to a text-defined strings?
O. |
|
| Back to top |
|
 |
Pedro
Global Moderator

Joined: 01 Sep 2006 Posts: 2624 Location: Silicon Valley
|
|
|
|
Try making all of the text data into output fields, with attribute ( TYPE(OUTPUT) )
Assign values to the variable output fields so that it looks like your intended panel. |
|
| Back to top |
|
 |
|
|