1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
unit Unit17b;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
StdCtrls,UChaines,translations,UnitScaleFont;
type
{ Tsplashscreen }
Tsplashscreen = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
procedure FormCreate(Sender: TObject);
procedure FormShow(Sender: TObject);
private
{ private declarations }
encreation:boolean;
public
{ public declarations }
end;
var
splashscreen: Tsplashscreen;
Lang, FallbackLang: String;
implementation
{ Tsplashscreen }
procedure Tsplashscreen.FormCreate(Sender: TObject);
var
PODirectory: String;
f:textfile; nom_ini_file:string;
label 1888;
begin
encreation:=true;
Caption := rsSplashscreen;
Label1.Caption := rsOptgeo2;
Label2.Caption := rsLogicielLibr;
Label3.Caption := rsVersion205Du;
Label4.Caption := rsAuteurJeanMa;
end;
procedure Tsplashscreen.FormShow(Sender: TObject);
begin
if encreation then begin scalefont(self); encreation:=false; end;
label1.Left:=(splashscreen.ClientWidth div 2)- (label1.Canvas.TextWidth(label1.Caption) div 2);
label2.Left:=(splashscreen.ClientWidth div 2)- (label2.Canvas.TextWidth(label2.Caption) div 2);
label3.Left:=(splashscreen.ClientWidth div 2)- (label3.Canvas.TextWidth(label3.Caption) div 2);
label4.Left:=(splashscreen.ClientWidth div 2)- (label4.Canvas.TextWidth(label4.Caption) div 2);
end;
initialization
{$I unit17b.lrs}
end.
|