BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TMediaplayer

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Quin
Guest





PostPosted: Mon Feb 13, 2006 1:03 pm    Post subject: TMediaplayer Reply with quote



If you don't set the "Display" property at design time, and output has video
content, then a display is automatically created. It creates a form with
come kind of canvas on it. The form is destroyed properly when video ends.
This is great, except that I need to maximize the form and don't know how
to.

Can you help me please?
Back to top
Peter Below (TeamB)
Guest





PostPosted: Mon Feb 13, 2006 8:03 pm    Post subject: Re: TMediaplayer Reply with quote



In article <43f07b71 (AT) newsgroups (DOT) borland.com>, Quin wrote:
Quote:
If you don't set the "Display" property at design time, and output has video
content, then a display is automatically created. It creates a form with
come kind of canvas on it. The form is destroyed properly when video ends.
This is great, except that I need to maximize the form and don't know how
to.

Can you help me please?

The media player maximizes on a Alt-Enter keystroke, if memory serves. So you
can try to do this:

keybd_event( VK_MENU, MapVirtualKey( VK_MENU, 0 ), 0, 0 );
keybd_event( VK_RETURN, MapVirtualKey( VK_RETURN, 0 ), 0, 0 );
keybd_event( VK_RETURN, MapVirtualKey( VK_RETURN, 0 ), KEYEVENTF_KEYUP, 0 );
keybd_event( VK_MENU, MapVirtualKey( VK_MENU, 0 ), KEYEVENTF_KEYUP, 0 );
mediaplayer1.Play;


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.