10-04-2008 5:32 AM
Hi
Anyone can tell me how to change the text font color at runtime in Modulepool program?
I tried with screen-intensified and screen-color but it didn't effect
Thanks in advance
venkateswararao
10-04-2008 6:21 AM
In the pbo module you can do that.
are you doing in this way..?
module modify_screen output.
LOOP AT SCREEN.
IF screen-NAME = 'TEST'.
screen-intensified = '1'.
MODIFY SCREEN. "<---this is must
ENDIF.
ENDLOOP.
endmodule. "
10-04-2008 7:38 AM
Thank u for ur answer, but I need the change in table control when ever I select one row and double click on it then that particular row will be highlighted with blue color. Here Iam getting all the rows will be highlighted. Is there any alternative for this?
Thanks in Advance
Regards
Venkateswararao
10-04-2008 10:42 AM
i don't think you can do the same for Tablecontrol. i am not sure.
10-06-2008 9:37 AM
For getting a single row highlighted do the following
1. make use of Selcolumn (line selection) property of table control to select a particular line
2. In PBO write
LOOP AT G_TC_ITAB "internal table name
INTO G_TC_WA "work area
WITH CONTROL TC "table control name
CURSOR TC-CURRENT_LINE.
*&SPWIZARD: MODULE TC_CHANGE_FIELD_ATTR
MODULE TC_MOVE.
MODULE TC_GET_LINES.
ENDLOOP.
3. inside the module TC_MOVE use vijay's code with some modification
MOVE-CORRESPONDING g_tc_wa TO mara.
LOOP AT SCREEN.
IF g_tc_wa-c_sel = 'X'.
screen-intensified = '1'.
MODIFY SCREEN. "<---this is must
ENDIF.
ENDLOOP.
4. in code above I am modifying the color of selected row where c_sel is the column used for line selection