AkroMen
Newbie | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору [more] [more] var MainImage : TBitmapImage; FinishedImage: TBitmapImage; WelcomeLabel1, WelcomeLabel2,StartMenuLbl,FinishedLabel,Welcome1,Welcome2,NeedSpaceLabel,SelectTasksLabel, FreeSpaceLabel, FinishedHeadingLabel: TLabel; procedure InitializeWizard(); begin ExtractTemporaryFile('1.bmp'); MainImage := TBitmapImage.Create(WizardForm); with MainImage do begin Parent := WizardForm; Left := 0; Top := 0; Width := 500; Height := 313; Bitmap.LoadFromFile(ExpandConstant('{tmp}\1.bmp')); end; ExtractTemporaryFile('2.bmp'); FinishedImage := TBitmapImage.Create(WizardForm); with FinishedImage do begin Parent := WizardForm; Left := 0; Top := 0; Width := 500; Height := 313; Bitmap.LoadFromFile(ExpandConstant('{tmp}\2.bmp')); end; Welcome1:= TLabel.Create(WizardForm); with Welcome1 do begin Left:= ScaleX(150); Top:= ScaleY(26); Width:= ScaleX(301); Height:= ScaleY(71); AutoSize:= false; Transparent:= true; WordWrap:= true; Font.Size:= 12; Font.Color:=clBlack Font.Style := [fsBold] Parent:= WizardForm; Font.Name:= 'Georgia' Caption:= ExpandConstant('{cm:Welcome1}') end; Welcome2:=TLabel.Create(WizardForm); with Welcome2 do begin Left:= ScaleX(150); Top:= ScaleY(66); Width:= ScaleX(345); Height:= ScaleY(300); AutoSize:= false; WordWrap:= true; Font.Color:=clBlack Font.Name:= 'Georgia' Font.Size:= 9; Transparent:= true; Parent:= WizardForm; Caption:= ExpandConstant('{cm:Welcome2}') end; FinishedHeadingLabel:=TLabel.Create(WizardForm); with FinishedHeadingLabel do begin Left:= ScaleX(170); Top:= ScaleY(26); Width:= ScaleX(300); Height:= ScaleY(150); AutoSize:= false; WordWrap:= true; Font.Size:= 12; Font.Color:=clBlack Font.Name:= 'Georgia' Font.Style := [fsBold] Transparent:= true; Parent:= WizardForm; Caption:= WizardForm.FinishedHeadingLabel.Caption; end; FinishedLabel:= TLabel.Create(WizardForm); with FinishedLabel do begin Left:= ScaleX(170); Top:= ScaleY(66); Width:= ScaleX(325); Height:= ScaleY(150); AutoSize:= false; WordWrap:= true; Transparent:= true; Font.Color:=clBlack Font.Size:= 9; Font.Name:= 'Georgia' Parent:= WizardForm; Caption:= ExpandConstant('{cm:Finished1}') + #10#13#10 + ExpandConstant('{cm:Finished2}') end; end; procedure HideComponents; begin Welcome1.Hide; Welcome2.Hide; FinishedHeadingLabel.Hide; FinishedLabel.Hide; end; procedure ShowComponents(CurPageID: Integer); begin case CurPageID of wpWelcome: begin Welcome1.Show; Welcome2.Show; end; wpFinished: begin FinishedHeadingLabel.Show; FinishedLabel.Show; end; end; end; procedure CurPageChanged(CurPageID: Integer); begin HideComponents; ShowComponents(CurPageID); if CurPageID = wpWelcome then begin WizardForm.OuterNotebook.Hide; FinishedImage.Hide; end else if CurPageID = wpFinished then begin WizardForm.OuterNotebook.Hide; MainImage.Hide; FinishedImage.Show; end else WizardForm.OuterNotebook.Show; end; | Всего записей: 22 | Зарегистр. 29-04-2014 | Отправлено: 14:57 05-05-2014 | Исправлено: AkroMen, 14:59 05-05-2014 |
|