Skip to Content

CL_GUI_TEXTEDIT: protected lines

When using the split screen editor for comparing abap sources, I see protected lines in the editor control that are of grey background. This is usually how SAPGUI indicates non-editable areas.

I want to use an edit control in a program and protect some lines of the text in the same way. I found out how to protect lines, but they are displayed as grey text on white background. Is it possible to have the same appearance of protected lines as in the ABAP editor?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 31, 2017 at 07:03 AM

    cl_gui_abapedit ;-)

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 31, 2017 at 08:02 AM

    What about CL_GUI_SOURCEEDIT?

    You could set language to TXT ( editor->set_source_type( 'TXT' ) and use method protect_lines( ).

    Add comment
    10|10000 characters needed characters exceeded