‎2009 Jun 05 7:03 AM
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!
‎2009 Aug 18 6:08 PM
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.
‎2009 Jun 05 7:10 AM
In the custom control in your screen tick the resizing attributes and put minimum lines & and column as 10.
Regards
Sathar
‎2009 Jun 05 7:33 AM
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.
‎2009 Aug 18 6:08 PM
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.
‎2009 Aug 19 7:41 AM
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 =
.