Changeset 611 for cprs/branches/GUI-config/AboutU.pas
- Timestamp:
- Nov 27, 2009, 4:58:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/GUI-config/AboutU.pas
r476 r611 97 97 98 98 procedure TAboutForm.FormShow(Sender: TObject); 99 var FileName : string; 99 100 begin 101 FileName := ExtractFilePath(ParamStr(0))+ 'splash.jpg'; 102 if FileExists(FileName) then begin 103 Image1.Picture.LoadFromFile(FileName); 104 end; 105 Image1.Width := Image1.Picture.Width; 106 Image1.Height := Image1.Picture.Height; 107 Self.Width := Image1.Picture.Width; 108 Self.Height := Image1.Picture.Height + Memo1.Height + 35; //not sure why 35 extra needed... 109 Self.Left:=(Screen.Width - Self.Width) div 2; 110 Self.Top := (Screen.Height - Self.Height) div 2; 100 111 MainForm.Hide; 112 101 113 Timer1.Enabled := true; 102 114 FadeIn := true;
Note:
See TracChangeset
for help on using the changeset viewer.