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

📄 fproject.dpr

📁 一款很漂亮的按钮组件Delphi,有源码哦。
💻 DPR
字号:
program FProject;

uses
  Windows,Forms, Classes, Graphics,
  FUnit in 'FUnit.pas' {Form1},
  SUnit in 'SUnit.pas' {SForm};

{$R *.RES}

var
  Splash : TSForm;
  ADC : HDC;
  pt : TPoint;
  bm : TBitmap;

begin
  try
    bm := TBitmap.Create;
    bm.Width :=  374;    //Width of Harmfade
    bm.Height := 118;    //Height of Harmfade
    pt.x := ((Screen.Width - 374) div 2);
    pt.y := ((Screen.Height - 118) div 2);
    ADC := GetDC(0);
    Bitblt(bm.Canvas.Handle, 0, 0,
           bm.Width, bm.Height,
           ADC, pt.X, pt.Y, SRCCOPY);
    Splash := TSForm.Create(Application);
    Splash.FormStyle := fsStayOnTop;
    Splash.HarmFade1.PicFrom.Assign(bm);
    Splash.Show;
    Application.ProcessMessages;
    Sleep(1000);
    Splash.HarmFade1.Blend;
    Sleep(3000);
    Application.Initialize;
    Application.CreateForm(TForm1, Form1);
    Splash.Close;
  finally
    Splash.Free;
    ReleaseDC(0, ADC);
    bm.Free;
  end;
  Application.Run;
end.

⌨️ 快捷键说明

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