Skip to Content
0
Former Member
Jun 04, 2009 at 03:56 PM

CL_GUI_TEXTEDIT - Highlight Comments, even if the lines are protected

326 Views

Hi all,

is there a possibility to highlight comment lines in Textedit control, even if they are protected? I just want to display the text, therefore I protect all lines. If the lines are not protected all works fine... But I have to create a display mode for the screen.

I've called the following methods of class cl_gui_textedit in this order to deny changes to the text:

1) PROTECT_LINES

2) SET_COMMENTS_STRING

3) SET_HIGHLIGHT_COMMENTS_MODE (true)

But all lines do have grey color.

Or is there a better way for just display a text in this control?

Thanks for any help in advance!

/Peter