⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dfwsmoothshowsampleformu.pas

📁 dfw控件组V0.62
💻 PAS
字号:
unit DFWSmoothShowSampleFormU;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, ExtCtrls, DFWSmoothShow;

type
  TMainForm = class(TForm)
    DFWSmoothShow1: TDFWSmoothShow;
    procedure FormShow(Sender: TObject);
    procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
    procedure SmoothShow1Finish(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  MainForm: TMainForm;

implementation

{$R *.DFM}

procedure TMainForm.FormShow(Sender: TObject);
begin
  DFWSmoothShow1.Reverse := False;
  DFWSmoothShow1.Execute;
end;

procedure TMainForm.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
begin
  if not DFWSmoothShow1.Reverse then
  begin
    DFWSmoothShow1.Reverse := True;
    DFWSmoothShow1.Execute;
    CanClose := False;
  end;
end;

procedure TMainForm.SmoothShow1Finish(Sender: TObject);
begin
  if DFWSmoothShow1.Reverse then
    Close;
end;

end.

⌨️ 快捷键说明

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