# MoviePlayer Contextual Menu

**URL:** <https://forum.xojo.com/t/movieplayer-contextual-menu/18691>\
**Category:** Windows\
**Created:** [August 18, 2014, 7:23pm UTC](https://forum.xojo.com/t/movieplayer-contextual-menu/18691 "2014-08-18T19:23:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Keeney](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/54ee81/32.png) [@Bob\_Keeney](https://forum.xojo.com/u/Bob_Keeney)\
**Post date:** [August 18, 2014, 7:23pm UTC](https://forum.xojo.com/t/movieplayer-contextual-menu/18691/1 "2014-08-18T19:23:44Z")

</div>

The MoviePlayer (Native) in Windows will allow a user to right-click on the MoviePlayer and get a contextual menu that allows access to a number of things you may not want them to access. There is a simple, but undocumented way to keep the user from getting to the menu by using the following in the MoviePlayer.Open event:

` #if TargetWin32 then
    me.MovieController.enableContextMenu = False
  #Endif`

Hopefully this is useful information.

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [August 18, 2014, 7:51pm UTC](https://forum.xojo.com/t/movieplayer-contextual-menu/18691/2 "2014-08-18T19:51:29Z")

</div>

Undocumented since this is part of the OLE Control - not Xojo’s movie player itself

---

<div class="post-metadata">

**Author:** ![Bob\_Keeney](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/54ee81/32.png) [@Bob\_Keeney](https://forum.xojo.com/u/Bob_Keeney)\
**Post date:** [August 19, 2014, 3:04pm UTC](https://forum.xojo.com/t/movieplayer-contextual-menu/18691/3 "2014-08-19T15:04:49Z")

</div>

More useful things you can do with the MoviePlayer in windows is available at [http://msdn.microsoft.com/en-us/library/windows/desktop/dd563945(v=vs.85).aspx](http://msdn.microsoft.com/en-us/library/windows/desktop/dd563945(v=vs.85).aspx)

---

<div class="post-metadata">

**Author:** ![Mike\_D](https://forum.xojo.com/user_avatar/forum.xojo.com/mike_d/32/266_2.png) [@Mike\_D](https://forum.xojo.com/u/Mike_D)\
**Post date:** [August 21, 2014, 4:20am UTC](https://forum.xojo.com/t/movieplayer-contextual-menu/18691/4 "2014-08-21T04:20:34Z")

</div>

Side question: Is there a way to block contextual clicks in a HTMLViewer? I know it’s possible though various JavaScript tricks, but how about for the whole control?

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [August 21, 2014, 4:49am UTC](https://forum.xojo.com/t/movieplayer-contextual-menu/18691/5 "2014-08-21T04:49:20Z")

</div>

Maybe since on Windows the native viewer is the ActiveX control and you _may_ be able to there using one of its native methods

On OS X its a web view and I’m not aware of a way to block them

On linux it ail depend on whether you have webkit or not and you can get at the handle and see if the chromium embedded api (version 2 not 3) has a way

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [August 21, 2014, 11:53am UTC](https://forum.xojo.com/t/movieplayer-contextual-menu/18691/6 "2014-08-21T11:53:49Z")

</div>

[quote=123064:@Norman Palardy]Maybe since on Windows the native viewer is the ActiveX control and you _may_ be able to there using one of its native methods  
[/quote]

The question came up in a thread not long ago. Of course now I can’t find it back. IE10 and 11 no longer rely on registry values for the content of the context menu, so the methods described on the Internet don’t work.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:22pm UTC](https://forum.xojo.com/t/movieplayer-contextual-menu/18691/7 "2020-10-29T17:22:50Z")

</div>


