![]() |
|
#1
|
||||
|
||||
|
Anyone who uses edit highlighting will know that when you over-type a character, the colour changes from its original colour to yellow.
I'd like to do the same thing in a panel I'm developing but I can't see how to do it. Before anyone asks, I've R'd TFM. I'm using a shadow variable and I thought that using a USERMOD definition might give me what I want. I've referred to panel ISREDDE2 (the main edit panel) but nothing's leaping out. Any ideas?
__________________
Ken MacKenzie
The best laid schemes o’ mice an’ men, Gang aft a-gley, An’ lea’e us nought but grief and pain, For promis’d joy. To a Mouse - Robert Burns (January 25, 1759 – July 21, 1796)
|
|
#2
|
|||
|
|||
|
Quote:
![]()
__________________
"Don't tell me how it works, tell me how it fails." |
|
#3
|
||||
|
||||
|
Since my original post I have (re)discovered that you can change the over-type colour by entering HIlight, then selecting Colors from the action bar then selecting 1. Overtype Color ..., so you're not stuck with yellow.
It's been years since I used a dumb terminal but I'm pretty sure that dumb terminals would exhibit the same behaviour.
__________________
Ken MacKenzie
The best laid schemes o’ mice an’ men, Gang aft a-gley, An’ lea’e us nought but grief and pain, For promis’d joy. To a Mouse - Robert Burns (January 25, 1759 – July 21, 1796)
|
|
#4
|
|||
|
|||
|
So much for my idea. I guess the Editor must do something to the 3270 data stream to cause this to happen. Interesting.
|
|
#5
|
||||
|
||||
|
Set the attribute byte that defines the input field in your dynamic area to the color you want.
__________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html . |
|
#6
|
||||
|
||||
|
Sorry Doug,
I don't really know what you mean. Could you expand on your answer?
__________________
Ken MacKenzie
The best laid schemes o’ mice an’ men, Gang aft a-gley, An’ lea’e us nought but grief and pain, For promis’d joy. To a Mouse - Robert Burns (January 25, 1759 – July 21, 1796)
|
|
#7
|
||||
|
||||
|
you saw that they use those defs in the ispf editor, right?
Code:
if it's urgent and noone answers you could post sample code if you want, I might try to play around with it, but don't like to create panel with area and program from scratch
__________________
In the real world, nothing is fully secure WebSphere MQ: Security |
|
#8
|
||||
|
||||
|
Sorry Ken. Away for a few days. But as mentioned, when you define the DATAIN attribute which creates the input field in your dynamic area, assign it the colors you want.
__________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html . |
|
#9
|
||||
|
||||
|
right, so while the folks are IPLing my system...
did my own panel experiments... So, again let's say we have Code:
You'll then 1. format the field that you want the user to overtype with '0B' (in the ZDATA or whatever you use as data part for your dynarea) 2. "overwrite" every character with the shadow variable, using the TYPE(CHAR) formatting. So if you want to display a text in blue and make it become ZPLEXCLR (yellow by default), you'd specify "B" in the shadow variable for the field.
__________________
In the real world, nothing is fully secure WebSphere MQ: Security |
|
#10
|
||||
|
||||
|
I got it working. Doug's answer was, of course, absolutely correct, it's just the user who needs to learn to read.
Here's a sample REXX and PANEL for anyone wishing to experiment. The words Green and Blue should appear (in the appropriate colours, with a yellow slash between) and when you overtype, they turn Red. REXX: Code:
Code:
__________________
Ken MacKenzie
The best laid schemes o’ mice an’ men, Gang aft a-gley, An’ lea’e us nought but grief and pain, For promis’d joy. To a Mouse - Robert Burns (January 25, 1759 – July 21, 1796)
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|