2007 Jun 11 2:51 PM
2007 Jun 11 2:51 PM
hi,
how to write colorfull text on screen?
regards
deepak
2007 Jun 11 2:51 PM
2007 Jun 11 2:53 PM
When you write INTESIFY = 1 in LOOP AT SCREEN. Then Blue clour text will appear if the text box in non edit mode.
If the text box is in edit mode then RED colour will appear.
2007 Jun 11 2:53 PM
Hi
You can assign COLOR for output fields in the reports
Where as for Screen fields we can't assign different colors.
we can make intensified or not.
Reward points for useful Answers
Regards
Anji
2007 Jun 11 2:53 PM
Hi,
The options COLOR, INTENSIFIED, and INVERSE of the FORMAT statement influence the
colors of the output list.
To set colors in the program, use:
Syntax
FORMAT COLOR <n> [ON] INTENSIFIED [ON|OFF] INVERSE [ON|OFF].
To set colors at runtime, use:
Syntax
FORMAT COLOR = <c> INTENSIFIED = <int> INVERSE = <inv>.
Ex.
REPORT demo_list_format_color_1.
DATA i TYPE i VALUE 0.
DATA col(15) TYPE c.
WHILE i < 8.
CASE i.
WHEN 0. col = 'COL_BACKGROUND '.
WHEN 1. col = 'COL_HEADING '.
WHEN 2. col = 'COL_NORMAL '.
WHEN 3. col = 'COL_TOTAL '.
WHEN 4. col = 'COL_KEY '.
WHEN 5. col = 'COL_POSITIVE '.
WHEN 6. col = 'COL_NEGATIVE '.
WHEN 7. col = 'COL_GROUP '.
ENDCASE.
FORMAT INTENSIFIED COLOR = i.
WRITE: /(4) i, AT 7 sy-vline,
col, sy-vline,
col INTENSIFIED OFF, sy-vline,
col INVERSE.
i = i + 1.
ENDWHILE.
Regards,
Bhaskar
2007 Jun 11 3:13 PM
hi,
<u>follow this synatax .</u>
<b>WRITE:/ <var> COLOR <n>. (here n = 1 to 7)</b>
the above statement used for printing the single variable in color format.
<b>FORMAT COLOR <n> [ON] INTENSIFIED [ON|OFF] INVERSE [ON|OFF].</b>
loop at itab.
write:/ var1,
var2.
endlop.
this statement used to print all the variables in color fromat.
<n> <c> Color Intended for
OFF or COL_BACKGROUND 0 depends on GUI background
1 or COL_HEADING 1 grey-blue headers
2 or COL_NORMAL 2 light grey list bodies
3 or COL_TOTAL 3 yellow totals
4 or COL_KEY 4 blue-green key columns
5 or COL_POSITIVE 5 green positive threshold value
6 or COL_NEGATIVE 6 red negative threshold value
7 or COL_GROUP 7 violet Control levels
The default setting is COLOR OFF.
regards,
Ashokreddy.
Message was edited by:
Ashok Reddy
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |