Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Windows Media Player 9 OCX won't resize in Delphi project.

314 views
Skip to first unread message

Konstantin Knyazev

unread,
Jul 14, 2004, 1:06:40 PM7/14/04
to
Hello!

I want embed Windows MediaPlayer 9 to my program. In runtime, i'm trying to
change OCX control's bounds, but it does not want to update sizes. Please,
help.

Thanks.

Best regards,
Konstantin Knyazev


Nic Roche

unread,
Jul 15, 2004, 1:15:27 AM7/15/04
to
Hi Konstantin,


I can confirm the OCX behaves the same on my system.

Have you tried the TActiveMovie component?


Regards

Nic Roche


"Konstantin Knyazev" <kknyazev...@mail.ru> wrote in message
news:u2R9Yzba...@TK2MSFTNGP11.phx.gbl...

Konstantin Knyazev

unread,
Jul 15, 2004, 5:43:40 AM7/15/04
to
No. Where can i find it?

Best regards,
Konstantin Knyazev

"Nic Roche" <nicr...@hotmail.com> wrote in message
news:u%23K3Dria...@TK2MSFTNGP10.phx.gbl...

Nic Roche

unread,
Jul 15, 2004, 9:16:21 PM7/15/04
to
http://www.datastead.com

Its an enhanced abstraction on the MediaPlayer.OCX but I do not know if it
solves your problems...

Nic

"Konstantin Knyazev" <kknyazev...@mail.ru> wrote in message

news:#$kYhgkaE...@TK2MSFTNGP10.phx.gbl...

Konstantin Knyazev

unread,
Jul 16, 2004, 5:15:35 AM7/16/04
to
I have found solution. In the OnFormResize event i have placed code:

with WindowsMediaPlayer1 do
Res := (IDispatch(OleObject) as IOleInPlaceObject).SetObjectRects(
BoundsRect, Rect(0, 0, 32767, 32767));

and now it works.

But found next problem. WMP 7 wan't work, i can't stop or pause playing
file.

Best regards,
Konstantin Knyazev.


"Nic Roche" <nicr...@hotmail.com> wrote in message

news:OzWcBKta...@TK2MSFTNGP10.phx.gbl...

Nic Roche

unread,
Jul 16, 2004, 8:25:51 PM7/16/04
to
well done with SetObjectRects

>i can't stop or pause playing
> file.

I expect you mean programmatically.

Does it throw an exception?


"Konstantin Knyazev" <kknyazev...@mail.ru> wrote in message

news:ORTPg1w...@TK2MSFTNGP09.phx.gbl...

Konstantin Knyazev

unread,
Jul 17, 2004, 7:32:07 AM7/17/04
to
No, i mean by WMP 7 user interface. It does not raect on pressing pause or
stop button.
Also, i found other problem with sizes of WMP 9, control sometime returns
itself default size. I think that Delphi have problems with TOleControl
class, it does not support ActiveX specification correctly. I almost have
lost hope to use WMP ActiveX in my program.

Best regards, Konstantin Knyazev.

"Nic Roche" <nicr...@hotmail.com> wrote in message

news:ehljeS5...@tk2msftngp13.phx.gbl...

Nic Roche

unread,
Jul 18, 2004, 1:21:24 AM7/18/04
to
I have use TActiveMovie to create a SVCD player for distribution with SVCD
disks.

It did not have the same problems you mention.

I think its shareware. It comes with some fairly intense demo projects.

Give it a try...


Nic

"Konstantin Knyazev" <kknyazev...@mail.ru> wrote in message

news:uPg7em#aEHA...@TK2MSFTNGP10.phx.gbl...

0 new messages