creating text area

Hi Guys,
        How to create a large text area in dialog screens. Not that of the size of a text box. A larger one just as that of the size of this question body one.

Thanx and Regards,
Ravi Kumar.
RavikumarvAsked:
Who is Participating?
 
jonvaughanConnect With a Mentor Commented:
Once you have created the container on the screen - in this case it is called SC_CONT_9000
you then create the control

* create container
  if gv_custom_container is initial.
    create object gv_custom_container
     exporting container_name = 'SC_CONT_9000'.


* create text control
    create object gv_text_editor
       exporting
            parent = gv_custom_container
            wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
            wordwrap_to_linebreak_mode = cl_gui_textedit=>false
       exceptions
            error_cntl_create      = 1
            error_cntl_init        = 2
            error_cntl_link        = 3
            error_dp_create        = 4
            gui_type_not_supported = 5.


    call method gv_text_editor->set_toolbar_mode
         exporting
              toolbar_mode = gv_text_editor->true
         exceptions
              error_cntl_call_method = 1
              invalid_parameter      = 2
              others                 = 3.


    call method gv_text_editor->set_statusbar_mode
         exporting
              statusbar_mode = gv_text_editor->false
         exceptions
              error_cntl_call_method = 1
              invalid_parameter      = 2
              others                 = 3.


    call method gv_text_editor->set_readonly_mode
             exporting
                  readonly_mode = gv_text_editor->true
             exceptions
                  error_cntl_call_method = 1
                  invalid_parameter      = 2
                  others                 = 3.

** you then need to get your text ...

** then convert it to a stream
* convert itf text to stream text
  call function 'CONVERT_ITF_TO_STREAM_TEXT'
       tables
            itf_text    = perm_tlinetab
            text_stream = lt_text_table.


* add it to the control
  call method gv_text_editor->set_text_as_stream
       exporting
            text = lt_text_table
       exceptions
            error_dp        = 1
            error_dp_create = 2
            others          = 3.


0
 
jonvaughanCommented:
You have to use the text area GUI  control.

Create an area on your Screen and fill it with the text area control ...

Jon
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.