USWFList.pas
上传用户:raido2005
上传日期:2022-06-22
资源大小:5044k
文件大小:1k
- unit USWFList;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, ShockwaveList, OleCtrls, ShockwaveFlashObjects_TLB, ShockwaveEx,
- Menus, StdCtrls, Buttons, ExtCtrls;
- type
- TForm1 = class(TForm)
- ShockwaveFlashList1: TShockwaveFlashList;
- PopupMenu1: TPopupMenu;
- N11: TMenuItem;
- N21: TMenuItem;
- N31: TMenuItem;
- SpeedButton1: TSpeedButton;
- SpeedButton2: TSpeedButton;
- RadioGroup1: TRadioGroup;
- procedure N11Click(Sender: TObject);
- procedure SpeedButton1Click(Sender: TObject);
- procedure SpeedButton2Click(Sender: TObject);
- procedure RadioGroup1Click(Sender: TObject);
- private
- { Private declarations }
- Can: boolean;
- xx,yy: integer;
- public
- { Public declarations }
- end;
- var
- Form1: TForm1;
- implementation
- {$R *.dfm}
- procedure TForm1.N11Click(Sender: TObject);
- begin
- // if RadioGroup1.ItemIndex > 0 then RadioGroup1.ItemIndex := 0;
- ShockwaveFlashList1.ItemIndex:=TMenuItem(sender).Tag;
- end;
- procedure TForm1.SpeedButton1Click(Sender: TObject);
- begin
- ShockwaveFlashList1.Play;
- end;
- procedure TForm1.SpeedButton2Click(Sender: TObject);
- begin
- ShockwaveFlashList1.Stop;
- end;
- procedure TForm1.RadioGroup1Click(Sender: TObject);
- begin
- ShockwaveFlashList1.MoviesLayout := TMoviesLayout(RadioGroup1.ItemIndex);
- end;
- end.