‎2006 Oct 27 5:33 AM
Hi,
I am using the text edit control in ABAP cl_gui_textedit.
The problem is that i do not want the horizontal scroll to appear. IS there any way of doing this? because i need keep the height of the control to one line but the horizontal scroll takes up the line and i cant see the text in the editor.
PLease let me know if you have any suggestions or if its not possible another control through which i can just display one line of text.
Regards,
Manoj.
‎2006 Oct 27 5:40 AM
Hi,
Pass the maximum number of characters MAX_NUMBER_CHARS when you create the editor..
CREATE OBJECT gcon_editor
EXPORTING
parent = gcon_custom_container
<b> MAX_NUMBER_CHARS = 38</b>
wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
wordwrap_position = '38'
wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
Thatway they cannot more than one line..
Thanks,
Naren
‎2006 Oct 27 5:55 AM
Hi Thanks for your reply,
but it still shows the horizontal scroll. i think what you have said will remove the vertical scroll.
the code i am using is:
CREATE OBJECT me->gctrl_msgtext
EXPORTING
parent = gref_str_err_box
max_number_chars = 100
wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
wordwrap_position = '100'
wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
CALL METHOD gctrl_msgtext->set_toolbar_mode
EXPORTING
toolbar_mode = 0.
CALL METHOD gctrl_msgtext->set_statusbar_mode
EXPORTING
statusbar_mode = 0.
CALL METHOD gctrl_msgtext->set_readonly_mode
EXPORTING
readonly_mode = '1'.
CALL METHOD gctrl_msgtext->set_text_as_stream
EXPORTING
text = lt_text.
‎2007 Feb 01 1:00 AM
Hi Manoj,
Could you please let me know how did you solve this horizontal scroll bar problem. Even I am facing the same issue. I guess it is something to do with the system settings. Awaiting reply.
Thanks and Regards,
Asha
‎2016 Jan 12 8:10 AM
‎2016 Mar 04 10:04 AM