1. David Vasconcelos
  2. PowerServer 2020 or older (Obsolete)
  3. Wednesday, 26 June 2019 18:38 PM UTC

Created a custom ole control as Microsoft Web Browser, how do you disable the right mouse menu.  I don't want any menus to popup in the ole?

 

PB2017 r3, Powerserver 2017, win10

Dave V.

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Sunday, 30 June 2019 13:26 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi,

When using a popmenu in the rmbutton clicked event, the system contextual menu is surpressed, but ... you say you don't want any menu at all.

(Also .. .if the control is not enabled, than there's no contextual menu, but that would render the control useless).

Something you could try is to add " oncontextmenu="return false">" to the html in the navigateEnd2 (or something like that?) event.

You'd have to use the "document.innerhtml" (outerhtml?) and set it to include that oncontextmenu phrase.

Sorry, I haven't tried it myself, it's just a suggestion and pointing out a possible solution of something you could try to do.

Goodluck !

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.