I think you can try a couple of approaches, plus you can try the following experiment: Experiment: Turn off hardware acceleration on your machine and then try your program. If you're not sure how, you can turn off hardware acceleration by right-clicking on your desktop so that you get the context menu with Properties at the bottom. Click Properties and then click on the Settings tab. On the page that shows up, click on Advanced, then Troubleshoot. The slider to control hardware acceleration should be there. Note where it is currently, because you'll want to put it back there. Slide it completely to the left so that there's no hardware acceleration, then close the dialogs until you're back at the desktop. Now try your program - maybe it will work.
Now put your hardware acceleration setting back where it was and you can try a couple off other approaches: The first is to put a transparent panel or label on top of the MediaPlayer control. Write your text as the caption of the label, or write onto the Panel in the way you are writing on to the form. But you may have a problem if your MediaPlayer control is rendering using hardware overlays on your system. That's related to the hardware acceleration stuff above. The other option is to use DSPack at http://www.progdigy.com. It's a Delphi library that wraps DirectShow and some of DirectX. There's a component there that's meant to easily allow video playback and text to be written to appear on top of the video. That's actually one of the demo programs, I believe, that comes with the library. There's a fairly active forum at that site, too, where you can get technical help. Good luck. Warrick _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of kc0fcp Sent: Saturday, November 04, 2006 8:38 PM To: [email protected] Subject: [delphi-en] Overlaying text on top of TWindowsMediaPlayer I'm using Delphi 7 Pro. I have imported the Windows Media Player Active X control as TWindowsMediaPlayer. I want to create a form that shows a video, but also displays text on top of the video. In the FormCreate method, I start the media player with WindowsMediaPlayer1.URL := 'Video.mpg'; Then I draw text on the form with Canvas.TextOut(X,Y,AStr); If I make the media player window on the form smaller than the text string, I can see the text string on the parts of the form that do not have the media player window. In other words, the text is appearing behind the video. I want the text to overlay the video. How is that done? . <http://geo.yahoo.com/serv?s=97359714/grpId=1997149/grpspId=1705115362/msgId =16214/stime=1162701626/nc1=3848644/nc2=3848525/nc3=4044338> [Non-text portions of this message have been removed] ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/delphi-en/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

