2017 Mar 31 7:46 AM
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?
2017 Mar 31 8:03 AM
2017 Mar 31 8:09 AM
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.
2017 Mar 31 8:20 AM
2017 Mar 31 9:02 AM
What about CL_GUI_SOURCEEDIT?
You could set language to TXT ( editor->set_source_type( 'TXT' ) and use method protect_lines( ).