正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- [code]
- procedure AboutButtonOnClick(Sender: TObject);
- begin
- MsgBox('版权所有 ? 开心联盟', mbInformation, mb_Ok);
- end;
- procedure URLLabelOnClick(Sender: TObject);
- var
- ErrorCode: Integer;
- begin
- ShellExec('open', 'http://New.av63.com', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
- end;
- function mciSendString(lpszCommand: String; lpszReturnString: Integer; cchReturnLength: Integer; hwndCallback: Integer): Integer;
- external 'mciSendStringA@winmm.dll stdcall';
- procedure InitializeWizard();
- var
- AboutButton, CancelButton: TButton;
- URLLabel: TNewStaticText;
- BackgroundBitmapImage: TBitmapImage;
- BackgroundBitmapText: TNewStaticText;
- SplashImage: TBitmapImage;
- GnatixInfo: TLabel;
- SplashForm: TForm;
- SplashFileName: String;
- I: Integer;
- begin
- CancelButton := WizardForm.CancelButton;
- AboutButton := TButton.Create(WizardForm);
- AboutButton.Left := WizardForm.ClientWidth - CancelButton.Left - CancelButton.Width;
- AboutButton.Top := CancelButton.Top;
- AboutButton.Width := CancelButton.Width;
- AboutButton.Height := CancelButton.Height;
- AboutButton.Caption := '关于(&A)...';
- AboutButton.OnClick := @AboutButtonOnClick;
- AboutButton.Parent := WizardForm;
- URLLabel := TNewStaticText.Create(WizardForm);
- URLLabel.Caption := 'New.av63.com';
- URLLabel.Cursor := crHand;
- URLLabel.OnClick := @URLLabelOnClick;
- URLLabel.Parent := WizardForm;
- URLLabel.Font.Style := URLLabel.Font.Style + [fsUnderline];
- URLLabel.Font.Color := clBlue;
- URLLabel.Top := AboutButton.Top + AboutButton.Height - URLLabel.Height - 2;
- URLLabel.Left := AboutButton.Left + AboutButton.Width + ScaleX(20);
- SplashFileName := ExpandConstant('{tmp}logo.bmp');
- ExtractTemporaryFile(ExtractFileName(SplashFileName));
- ExtractTemporaryFile(ExtractFileName(ExpandConstant('{tmp}music.mid')));
- BackgroundBitmapImage := TBitmapImage.Create(MainForm);
- BackgroundBitmapImage.Left := 50;
- BackgroundBitmapImage.Top := 100;
- BackgroundBitmapImage.AutoSize := True;
- {原来的脚本段 BackgroundBitmapImage.Bitmap := WizardForm.WizardBitmapImage.Bitmap; 修改为以下}
- BackgroundBitmapImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}Logo.bmp')); //这里就是背景图位置
- BackgroundBitmapImage.Parent := MainForm;
- BackgroundBitmapText := TNewStaticText.Create(MainForm);
- BackgroundBitmapText.Left := BackgroundBitmapImage.Left;
- BackgroundBitmapText.Top := BackgroundBitmapImage.Top + BackgroundBitmapImage.Height + ScaleY(8);
- BackgroundBitmapText.Caption := '开心联盟';
- BackgroundBitmapText.Parent := MainForm;
- WizardForm.BeveledLabel.Enabled:= True;
- WizardForm.BeveledLabel.Font.Color:= $00C59016;
- WizardForm.BeveledLabel.Top:= WizardForm.BeveledLabel.Top+3;
- SplashForm := TForm.create(nil);
- with SplashForm do
- begin
- BorderStyle := bsNone;
- Position := poScreenCenter;
- ClientWidth := 250;
- ClientHeight := 236;
- Color:= $00E7AD29;
- end;
- SplashImage := TBitmapImage.Create(SplashForm);
- GnatixInfo := TLabel.Create(SplashForm);
- with SplashImage do
- begin
- Bitmap.LoadFromFile(SplashFileName);
- Stretch := true;
- Align := alClient;
- Parent := SplashForm;
- end;
- with GnatixInfo do
- begin
- Left := 176;
- Top := 215;
- Caption :='请稍候...';
- Parent := SplashForm;
- Font.Name:= '宋体';
- Font.Height:= -14;
- Font.Style:= [fsBold];
- Font.Color:= clWhite;
- end;
- with SplashForm do
- begin
- Show;
- for I := 1 to 6 do
- begin
- Repaint;
- if I mod 2 = 0 then
- gnatixinfo.visible:= true
- else
- gnatixinfo.visible:= false;
- Sleep(500);
- end;
- mciSendString(ExpandConstant('play {tmp}music.mid'),0,0,0);
- Close;
- Free;
- end;
- end;
复制代码
|