uslideshow.pas

来自「作工控的好控件」· PAS 代码 · 共 48 行

PAS
48
字号
unit uslideshow;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  VrControls, VrSystem, VrSlideShow, VrButtons;

type
  TForm1 = class(TForm)
    VrSlideShow1: TVrSlideShow;
    VrBitmapList1: TVrBitmapList;
    VrHyperButton1: TVrHyperButton;
    VrHyperButton2: TVrHyperButton;
    procedure VrSlideShow1NextSlide(Sender: TObject);
    procedure VrHyperButton1Click(Sender: TObject);
    procedure VrHyperButton2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.VrSlideShow1NextSlide(Sender: TObject);
begin
  VrSlideShow1.Transition := TVrTransitionEffect(Random(19)+1);
end;

procedure TForm1.VrHyperButton1Click(Sender: TObject);
begin
  VrSlideShow1.Active := True;
  VrHyperButton1.Enabled := false;
end;

procedure TForm1.VrHyperButton2Click(Sender: TObject);
begin
  Application.Terminate;
end;

end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?