View previous topic :: View next topic
|
Author |
Message |
usbendre
New User
Joined: 31 Mar 2005 Posts: 1
|
|
|
|
I was trying to change the color of a field in my map. I had used the options DSATTS=COLOR,MAPATTS=COLOR in my map definition and in the program I moved the value DFHYELLO to the C field on the map. However it doesnt seem to work.
Am I missing something else??? |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
usbendre wrote: |
I was trying to change the color of a field in my map. I had used the options DSATTS=COLOR,MAPATTS=COLOR in my map definition and in the program I moved the value DFHYELLO to the C field on the map. However it doesnt seem to work.
Am I missing something else??? |
Does the terminal or emulator you are using support the color attributes? |
|
Back to top |
|
|
socker_dad
Active User
Joined: 05 Dec 2006 Posts: 177 Location: Seattle, WA
|
|
|
|
On my map, I had to specify MAPATTS=(COLOR,HILIGHT) on the initial DFHMSD statement:
Code: |
SEM01M DFHMSD TYPE=&SYSPARM,
MODE=INOUT,
MAPATTS=(COLOR,HILIGHT),
LANG=COBOL,
CTRL=(FREEKB,FRSET),
TIOAPFX=YES,
TERM=3270-2
|
Then on the DFHMDI I specified the extended attributes.
Code: |
EMSMAP1 DFHMDI SIZE=(24,80),
LINE=1,
COLUMN=1,
EXTATT=YES
|
This allowed me to be able to move colors to the 'C' field and have it actually work:
Code: |
MOVE COLOR-NEUTRAL TO MORPOSC
MORPLSC
|
Good luck! |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
The extended attribute has nothing to do with COLOR, the 4 extended attributes get moved to the mapfield-H field.
Code: |
EXAT-REVERSE-VIDEO PIC X(01) VALUE '2'.
EXAT-UNDERLINE PIC X(01) VALUE '4'.
EXAT-UNDERLN-REVERSE PIC X(01) VALUE '6'.
EXAT-DEFAULT PIC X(01) VALUE HIGH-VALUES.
|
|
|
Back to top |
|
|
socker_dad
Active User
Joined: 05 Dec 2006 Posts: 177 Location: Seattle, WA
|
|
|
|
Oh well. You know - use the shot gun approach. |
|
Back to top |
|
|
|