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

Text edit control : scroll bar problem

Former Member
0 Likes
1,134

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.

5 REPLIES 5
Read only

Former Member
0 Likes
793

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

Read only

0 Likes
793

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.

Read only

0 Likes
793

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

Read only

0 Likes
793

This message was moderated.

Read only

0 Likes
793

This message was moderated.