Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Change the text font color at runtime in modulepool

Former Member
0 Kudos

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

4 REPLIES 4

former_member188685
Active Contributor
0 Kudos

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.                 "

0 Kudos

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

0 Kudos

i don't think you can do the same for Tablecontrol. i am not sure.

0 Kudos

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