<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem In displaying Text in text editor using cl_gui_textedit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-displaying-text-in-text-editor-using-cl-gui-textedit/m-p/6767088#M1462629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe your container lenght is smaller than 72 chars (stantard for sapscript and SO10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you save it you can see the text on the same line, and then when displaying on smaller line lenght it makes a line return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway I haven't had any problem with it. Here I show you how I usually define it when used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT GV_TEXT_EDITOR
  EXPORTING
    PARENT = GV_SPLITTER-&amp;gt;BOTTOM_RIGHT_CONTAINER
    WORDWRAP_MODE = CL_GUI_TEXTEDIT=&amp;gt;WORDWRAP_AT_WINDOWBORDER
    WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=&amp;gt;FALSE
  EXCEPTIONS
    ERROR_CNTL_CREATE      = 1
    ERROR_CNTL_INIT        = 2
    ERROR_CNTL_LINK        = 3
    ERROR_DP_CREATE        = 4
    GUI_TYPE_NOT_SUPPORTED = 5.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And some useful options:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*READ ONLY
 call method gv_text_editor-&amp;gt;set_readonly_mode
   exporting
     readonly_mode = gv_text_editor-&amp;gt;true
   exceptions
     error_cntl_call_method = 1
     invalid_parameter      = 2
     others                 = 3.

*NO TOOLBAR
  call method gv_text_editor-&amp;gt;SET_TOOLBAR_MODE
   exporting
     TOOLBAR_MODE = gv_text_editor-&amp;gt;false
   exceptions
     error_cntl_call_method = 1
     invalid_parameter      = 2
     others                 = 3.

*NO STATUS BAR (bottom one)
 call method gv_text_editor-&amp;gt;SET_STATUSBAR_MODE
   exporting
     STATUSBAR_MODE = gv_text_editor-&amp;gt;false
   exceptions
     error_cntl_call_method = 1
     invalid_parameter      = 2
     others                 = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2011 15:01:01 GMT</pubDate>
    <dc:creator>marcelogb</dc:creator>
    <dc:date>2011-05-11T15:01:01Z</dc:date>
    <item>
      <title>Problem In displaying Text in text editor using cl_gui_textedit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-displaying-text-in-text-editor-using-cl-gui-textedit/m-p/6767085#M1462626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts, &lt;/P&gt;&lt;P&gt;I have created a customer container and using class cl_gui_textedit to have a text editor on the screen and saving the text as standard text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is when i save the test say TEST TEST TEST TEST , it get saved properly but when i display it the last word is getting shifted to next line &lt;/P&gt;&lt;P&gt;like TEST TEST TEST&lt;/P&gt;&lt;P&gt;       TEST&lt;/P&gt;&lt;P&gt;and vertical scroll bar is getting displayed, but if i go back and come again the scroll bar is no more there and text is displayed properly TEST TEST TEST TEST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldnt find any method to control the scroll bar , &lt;/P&gt;&lt;P&gt;request for a solution and thanks in advance .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Pramod Adhav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 04:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-displaying-text-in-text-editor-using-cl-gui-textedit/m-p/6767085#M1462626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T04:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem In displaying Text in text editor using cl_gui_textedit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-displaying-text-in-text-editor-using-cl-gui-textedit/m-p/6767086#M1462627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try by using this method SET_WORDWRAP_BEHAVIOR&lt;/P&gt;&lt;P&gt;(Use this method to set the behavior of the line break. I am not sure which parameter you have to use )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method textedit  set_wordwrap_behavior&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;wordwrap_to_linebreak_mode = '0'. " (also Try by '1')&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;error_cntl_call_method = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you&lt;/P&gt;&lt;P&gt;Regrads,&lt;/P&gt;&lt;P&gt;Raghava Channooru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 05:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-displaying-text-in-text-editor-using-cl-gui-textedit/m-p/6767086#M1462627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T05:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem In displaying Text in text editor using cl_gui_textedit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-displaying-text-in-text-editor-using-cl-gui-textedit/m-p/6767087#M1462628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghava, &lt;/P&gt;&lt;P&gt;I have already tried this but didnt help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 06:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-displaying-text-in-text-editor-using-cl-gui-textedit/m-p/6767087#M1462628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T06:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem In displaying Text in text editor using cl_gui_textedit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-displaying-text-in-text-editor-using-cl-gui-textedit/m-p/6767088#M1462629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe your container lenght is smaller than 72 chars (stantard for sapscript and SO10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you save it you can see the text on the same line, and then when displaying on smaller line lenght it makes a line return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway I haven't had any problem with it. Here I show you how I usually define it when used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT GV_TEXT_EDITOR
  EXPORTING
    PARENT = GV_SPLITTER-&amp;gt;BOTTOM_RIGHT_CONTAINER
    WORDWRAP_MODE = CL_GUI_TEXTEDIT=&amp;gt;WORDWRAP_AT_WINDOWBORDER
    WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=&amp;gt;FALSE
  EXCEPTIONS
    ERROR_CNTL_CREATE      = 1
    ERROR_CNTL_INIT        = 2
    ERROR_CNTL_LINK        = 3
    ERROR_DP_CREATE        = 4
    GUI_TYPE_NOT_SUPPORTED = 5.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And some useful options:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*READ ONLY
 call method gv_text_editor-&amp;gt;set_readonly_mode
   exporting
     readonly_mode = gv_text_editor-&amp;gt;true
   exceptions
     error_cntl_call_method = 1
     invalid_parameter      = 2
     others                 = 3.

*NO TOOLBAR
  call method gv_text_editor-&amp;gt;SET_TOOLBAR_MODE
   exporting
     TOOLBAR_MODE = gv_text_editor-&amp;gt;false
   exceptions
     error_cntl_call_method = 1
     invalid_parameter      = 2
     others                 = 3.

*NO STATUS BAR (bottom one)
 call method gv_text_editor-&amp;gt;SET_STATUSBAR_MODE
   exporting
     STATUSBAR_MODE = gv_text_editor-&amp;gt;false
   exceptions
     error_cntl_call_method = 1
     invalid_parameter      = 2
     others                 = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 15:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-displaying-text-in-text-editor-using-cl-gui-textedit/m-p/6767088#M1462629</guid>
      <dc:creator>marcelogb</dc:creator>
      <dc:date>2011-05-11T15:01:01Z</dc:date>
    </item>
  </channel>
</rss>

