Application Development and Automation 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: 
Read only

CL_GUI_TEXTEDIT: protected lines

jrgkraus
Active Contributor
0 Kudos
908

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?

4 REPLIES 4
Read only

retired_member
Product and Topic Expert
Product and Topic Expert
443

cl_gui_abapedit 😉

Read only

0 Kudos
443

Do you mean cl_gui_abapedit? OK I will try...

EDIT

No I can't use the ABAP editor for users to enter text, can I? They will get all this syntax highlighting and auto completion suggestions which will confuse them.

Read only

0 Kudos
443

oops

Read only

Peter_Inotai
Active Contributor
443

What about CL_GUI_SOURCEEDIT?

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