‎2008 Nov 06 4:14 PM
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).
‎2008 Nov 06 4:38 PM
Use the method SET_FIRST_VISIBLE_LINE of the class CL_GUI_TEXTEDIT to set the next avaliabe line for editing.
Regards,
Naimesh Patel
‎2008 Nov 07 6:15 AM
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.
‎2008 Nov 07 10:39 AM
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.
‎2008 Nov 14 9:47 AM