Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ole web browser, prevent F8 key from firing

Hi all,

I have added an OLE Web Browser control to a window in PB11.2 and load a PDF document.  This works fine.

But I want to prevent the user from pressing F8/right-clicking within the ole.  Because doing so allows the user to see the adobe reader toolbar (F8) / context-menu (right-click) which allows him to other stuff (save/print) which we dont want the user to do.

I have been able to prevent the user from right-clicking inside the ole control via the following code (in "other" event):

IF wparam = 516 THEN

    //disable right-click

    ole_control.POST SetFocus( )

END IF

However, am unable to prevent key event from being fired inside the ole control.  Does any one have any ideas/suggestions?

Thanking you in advance.

Cheers,

Former Member
Not what you were looking for? View more on this topic or Ask a question