Ignore:
Timestamp:
Nov 27, 2009, 4:58:08 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Allow user-definable splash.jpg image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/GUI-config/AboutU.pas

    r476 r611  
    9797
    9898  procedure TAboutForm.FormShow(Sender: TObject);
     99  var  FileName : string;
    99100  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;
    100111    MainForm.Hide;
     112
    101113    Timer1.Enabled := true;
    102114    FadeIn := true;
Note: See TracChangeset for help on using the changeset viewer.