‎2006 Nov 30 3:21 PM
Hi all,
is that possible to disable context menu for CL_GUI_HTML_VIEWER control? It displays usual IE context menu and I don't want it.
Thanks for any advice.
Marcin
‎2006 Dec 02 10:07 AM
while creating the instance of html_viewer pass uiflag parameter to disable context menu.
CREATE OBJECT html_viewer
EXPORTING
* SHELLSTYLE =
parent = container
* LIFETIME = LIFETIME_DEFAULT
* SAPHTMLP =
UIFLAG = CL_GUI_HTML_VIEWER=>UIFLAG_NOIEMENU
* 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.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Raja
‎2006 Nov 30 3:56 PM
Hi,
Did you check the method TRACK_CONTEXT_MENU in class CL_GUI_HTML_VIEWER?
The parameter CTXMENU has attribute DISABLED. I think this needs be set to X. We also have to pass value to attribute TYPE (M(Menu), S(ubmenu), F(unction), D(elimiter)).
Thanks
Ramakrishna
‎2006 Dec 02 10:07 AM
while creating the instance of html_viewer pass uiflag parameter to disable context menu.
CREATE OBJECT html_viewer
EXPORTING
* SHELLSTYLE =
parent = container
* LIFETIME = LIFETIME_DEFAULT
* SAPHTMLP =
UIFLAG = CL_GUI_HTML_VIEWER=>UIFLAG_NOIEMENU
* 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.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Raja
‎2006 Dec 05 8:30 AM
big thanks Raja, that is exactly what I was looking for.
regards,
Marcin