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

Problem with cl_gui_texteditor

Former Member
0 Likes
595

Hi Guys,

I'm Placing two text editors in a screen and I'm entering some text (up to 255 chars). For the first time when i'm entering the text in two editors i didnot find any problem. But for the second time, even if i doing vertical scrolling the text editors are in the same position with previoue texts. So my question is I want to fix the position of the text editor on my own control in order to enter new data on it.( to fix it constant).

4 REPLIES 4
Read only

naimesh_patel
Active Contributor
0 Likes
544

Use the method SET_FIRST_VISIBLE_LINE of the class CL_GUI_TEXTEDIT to set the next avaliabe line for editing.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
544

Hi Rajesh,

1) In what type of container(docking/custom....) ur textedit control is placed..??

2) What does this scroller mean(scroller of screen/scroller of textedit control)..??

Jose.

Read only

Former Member
0 Likes
544

you can fix WORDWRAP_MODE in your constructor to fix the position using attribute WORDWRAP_OFF.

call constructor

WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_OFF.

CREATE OBJECT EDITOR

EXPORTING

WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION

WORDWRAP_POSITION = 70 "line_length

WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE

PARENT = CONTAINER.

Read only

Former Member
0 Likes
544

solved by myself.