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
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...
Best regards,
Konstantin Knyazev
"Nic Roche" <nicr...@hotmail.com> wrote in message
news:u%23K3Dria...@TK2MSFTNGP10.phx.gbl...
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...
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...
>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...
Best regards, Konstantin Knyazev.
"Nic Roche" <nicr...@hotmail.com> wrote in message
news:ehljeS5...@tk2msftngp13.phx.gbl...
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...