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

HTML Control

Former Member
0 Likes
1,081

Hi,

I'm using CL_GUI_HTML_VIEWER to display links on a screen using a container.

Is is possible to disable the scroll bar of the Page that comes up in teh container? (users don't seem to like it)

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
759

Had you try to modify your HTML page?

Add the value ";overflow:hidden" in parameter "style" of tag in your HTML page.

For exemple: <body style="font-family:arial;font-size:90%;overflow:hidden">

This way you won´t see the scrollbars.

Hope it helps you.

4 REPLIES 4
Read only

Former Member
0 Likes
759

In the custom control in your screen tick the resizing attributes and put minimum lines & and column as 10.

Regards

Sathar

Read only

0 Likes
759

Thanks Sathar. Tried it, but didn't work. The greyed out scrollbar is still sticking on to the container.

I'm wondering if setting the size of the window of the control might help.

Folks, any other suggestions?

I tried changing the height to no avail.

Read only

Former Member
0 Likes
760

Had you try to modify your HTML page?

Add the value ";overflow:hidden" in parameter "style" of tag in your HTML page.

For exemple: <body style="font-family:arial;font-size:90%;overflow:hidden">

This way you won´t see the scrollbars.

Hope it helps you.

Read only

Former Member
0 Likes
759

hi,

just u pass the importing parameter of parent only.

this code is use full for u

data :o_html type ref to cl_gui_html_viewer.

create object o_html

exporting

  • SHELLSTYLE =

parent = o_top

  • LIFETIME = LIFETIME_DEFAULT

  • SAPHTMLP =

  • UIFLAG =

  • NAME =

  • SAPHTTP =

  • QUERY_TABLE_DISABLED = ''

  • EXCEPTIONS

  • CNTL_ERROR = 1

  • CNTL_INSTALL_ERROR = 2

  • DP_INSTALL_ERROR = 3

  • DP_ERROR = 4

  • OTHERS = 5

.

if sy-subrc = 0.

o_dd->html_control = o_html.

endif.

call method o_dd->display_document

exporting

reuse_control = 'X'

  • REUSE_REGISTRATION =

  • CONTAINER =

  • PARENT =

  • EXCEPTIONS

  • HTML_DISPLAY_ERROR = 1

  • OTHERS = 2

.

*IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

  • ENDIF.

call method o_grid->list_processing_events

exporting

i_event_name = 'TOP-OF-PAGE'

i_dyndoc_id = o_dd

  • IS_SUBTOTTXT_INFO =

  • IP_SUBTOT_LINE =

  • I_TABLE_INDEX =

  • CHANGING

  • C_SUBTOTTXT =

.