Skip to Content
0

CL_GUI_TEXTEDIT: protected lines

Mar 31, 2017 at 06:46 AM

157

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Horst Keller
Mar 31, 2017 at 07:03 AM
1

cl_gui_abapedit ;-)

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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.

0

oops

0
Peter Inotai Mar 31, 2017 at 08:02 AM
1

What about CL_GUI_SOURCEEDIT?

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

Share
10 |10000 characters needed characters left characters exceeded