 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Quin Guest
|
Posted: Mon Feb 13, 2006 1:03 pm Post subject: TMediaplayer |
|
|
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
|
Posted: Mon Feb 13, 2006 8:03 pm Post subject: Re: TMediaplayer |
|
|
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 |
|
 |
|
|
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
|
|