?
Solved

Hide Windows Media Player Popup

Posted on 2003-03-14
6
Medium Priority
?
679 Views
Last Modified: 2010-04-04
I'm using Windows Media Player Control ActiveX, for playing multimedia files. How to hide the popup menu, and use my own popup menu ?
0
Comment
Question by:atheizm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 17

Accepted Solution

by:
geobul earned 500 total points
ID: 8142624
Hi,

Are you talking about TMediaPlayer component? If yes then:

1. Add TPopupMenu component on the form.
2. Double-click on it and add your menu items.
3. Create popup menu events you need.
4. Set MediaPlayer1.PopupMenu property to PopupMenu1.

Regards, Geo
0
 
LVL 6

Assisted Solution

by:Amir Azhdari
Amir Azhdari earned 500 total points
ID: 8142658

Hi , try to find and change these in your Mediaplayer Properties :

EnableContextMenu:=false;
SendMouseClickEvents:=true;

Now , write this code in your MediaPlayer OnMouseDown Event :


procedure TForm1.MediaPlayer11MouseDown(Sender: TObject;
  Button: TMouseButton; Shift: TShiftState; X, Y: Integer);

var pos:TPOINT;

  begin

if button=mbright    then
 begin
  getcursorpos(pos);
  popupmenu1.Popup(pos.X,pos.y);
      // popupmenu1 is your own popup menu
 end;

end;


Regards
Amir
 
0
 

Expert Comment

by:CleanupPing
ID: 9316768
atheizm:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 10

Expert Comment

by:kacor
ID: 10605012
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:
       to split points between geobul and AmirAzhdari
Please leave any comments here within the next four (4) days.

kacor
EE Cleanup Volunteer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question