USWFList.pas
上传用户:raido2005
上传日期:2022-06-22
资源大小:5044k
文件大小:1k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. unit USWFList;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  5.   Dialogs, ShockwaveList, OleCtrls, ShockwaveFlashObjects_TLB, ShockwaveEx,
  6.   Menus, StdCtrls, Buttons, ExtCtrls;
  7. type
  8.   TForm1 = class(TForm)
  9.     ShockwaveFlashList1: TShockwaveFlashList;
  10.     PopupMenu1: TPopupMenu;
  11.     N11: TMenuItem;
  12.     N21: TMenuItem;
  13.     N31: TMenuItem;
  14.     SpeedButton1: TSpeedButton;
  15.     SpeedButton2: TSpeedButton;
  16.     RadioGroup1: TRadioGroup;
  17.     procedure N11Click(Sender: TObject);
  18.     procedure SpeedButton1Click(Sender: TObject);
  19.     procedure SpeedButton2Click(Sender: TObject);
  20.     procedure RadioGroup1Click(Sender: TObject);
  21.   private
  22.     { Private declarations }
  23.     Can: boolean;
  24.     xx,yy: integer;
  25.   public
  26.     { Public declarations }
  27.   end;
  28. var
  29.   Form1: TForm1;
  30. implementation
  31. {$R *.dfm}
  32. procedure TForm1.N11Click(Sender: TObject);
  33. begin
  34. //  if RadioGroup1.ItemIndex > 0 then RadioGroup1.ItemIndex := 0;
  35.   ShockwaveFlashList1.ItemIndex:=TMenuItem(sender).Tag;
  36. end;
  37. procedure TForm1.SpeedButton1Click(Sender: TObject);
  38. begin
  39.  ShockwaveFlashList1.Play;
  40. end;
  41. procedure TForm1.SpeedButton2Click(Sender: TObject);
  42. begin
  43.  ShockwaveFlashList1.Stop;
  44. end;
  45. procedure TForm1.RadioGroup1Click(Sender: TObject);
  46. begin
  47.  ShockwaveFlashList1.MoviesLayout := TMoviesLayout(RadioGroup1.ItemIndex);
  48. end;
  49. end.