Re: TShockwaveFlash Activex



Hi again,

Here an even more complete one, this one takes care about Maximize and
Restore actions.

--------------------------------------------------------------
unit untFrmMain;

interface

uses blabla;

type
TfrmMain = class(TForm)
procedure WMExitSizeMove(var AMsg:TMessage); message
WM_EXITSIZEMOVE;
procedure WMSize(var AMsg: TWMSize); message WM_SIZE;
end;

var
FResized:Boolean;
FMaximized:Boolean;

implementation

procedure TfrmMain.WMExitSizeMove(var AMsg: TMessage);
begin
inherited;
// WMP is Windows Media Player here
WMP.DoObjectVerb(-1);
end;

procedure TfrmMain.WMSize(var AMsg: TWMSize);
begin
inherited;
if (AMsg.SizeType=SIZE_RESTORED) and FMaximized then
begin
WMP.DoObjectVerb(-1);
FMaximized := False;
end;
if (AMsg.SizeType=SIZE_MAXIMIZED) then
begin
WMP.DoObjectVerb(-1);
FMaximized := True;
end;
end;

end.
--------------------------------------------------------------

Please reply!

Grtz,
AniMatrix


dvddude schreef:

HI everyone,

I have imported the TShockWaveflash activeX control into Delphi 7 so that my
application can play a flash movie.

Now everything works fine until i resize the form at runtime. The flash
control take the original size of the form, and stays at that size
regardless. The extra area formclient area just doesn't repaint and stays
looking like the desktop beneath it.

The TShockWaveFlash component has its Align property set to alClient.

I have tried invalidating both the for and the shockwave component inside
the form's OnResize event, but this doesn't help either.

Does anyone know why the shockwaveflash component will not resize to fill
the client area?

Thanks

Vertuas

.



Relevant Pages

  • TShockwaveFlash Activex
    ... I have imported the TShockWaveflash activeX control into Delphi 7 so that my ... application can play a flash movie. ... Now everything works fine until i resize the form at runtime. ... I have tried invalidating both the for and the shockwave component inside ...
    (comp.lang.pascal.delphi.misc)
  • Re: TShockwaveFlash Activex
    ... I have imported the TShockWaveflash activeX control into Delphi 7 so that my ... application can play a flash movie. ... Now everything works fine until i resize the form at runtime. ... I have tried invalidating both the for and the shockwave component inside ...
    (comp.lang.pascal.delphi.misc)