File: unit22.pas

package info (click to toggle)
dozzaqueux 3.21-4
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 5,140 kB
  • sloc: pascal: 33,352; xml: 961; makefile: 38; sh: 17
file content (95 lines) | stat: -rwxr-xr-x 2,475 bytes parent folder | download
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
unit Unit22;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
  ExtCtrls, StdCtrls, Spin, Buttons,UChaines,UnitScaleFont;

type

  { Tsaisietypedonnee }

  Tsaisietypedonnee = class(TForm)
    BitBtn1: TBitBtn;
    CheckBoxrepresente: TCheckBox;
    ColorDialog1: TColorDialog;
    Edit_nom_e: TEdit;
    Label1: TLabel;
    Label15: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    SpeedButtoncouleur_e: TPanel;
    RadioGrouptype_e: TRadioGroup;
    RadioGroupjoindre_e: TRadioGroup;
    RadioGroupechelle_e: TRadioGroup;
    SpinEditepaisseur_e: TSpinEdit;
    SpinEdittaille_e: TSpinEdit;
    procedure FormCreate(Sender: TObject);
    procedure FormShow(Sender: TObject);
    procedure SpeedButtoncouleur_eClick(Sender: TObject);
  private
    { private declarations }
    encreation:boolean;
  public
    { public declarations }
  end; 

var
  saisietypedonnee: Tsaisietypedonnee;
   ma_couleur:tcolor;
implementation

{ Tsaisietypedonnee }

procedure Tsaisietypedonnee.SpeedButtoncouleur_eClick(Sender: TObject);
begin
  if colordialog1.Execute then
ma_couleur:=colordialog1.Color;
 saisietypedonnee.SpeedButtoncouleur_e.Color:=
 ma_couleur;
end;

procedure Tsaisietypedonnee.FormCreate(Sender: TObject);
begin
    encreation:=true;

  ma_couleur:=clblue;
SpeedButtoncouleur_e.Color:=ma_couleur;
Caption := rsTypeDeDonnE;
  Label15.Caption := rsTailleDesPoi ;
   Label2.Caption := rsEpaisseurTra2 ;
    Label3.Caption := rsCouleur2 ;
     Label4.Caption := rsNom  ;
     RadioGroupechelle_e.Caption := rsEchelle2 ;
    // RadioGroupechelle_e.Items.Clear;
      RadioGroupechelle_e.Items[0]:=(rsGauche);
      RadioGroupechelle_e.Items[1]:=(rsDroite);
      RadioGroupjoindre_e.Caption := rsJoindreLesPo ;
      // RadioGroupjoindre_e.Items.Clear;
      RadioGroupjoindre_e.Items[0]:=(rsNon2);
      RadioGroupjoindre_e.Items[1]:=(rsOui2);
       RadioGrouptype_e.Caption := rsReprSentEPar ;
      //  RadioGrouptype_e.Items.Clear;
      RadioGrouptype_e.Items[0]:=(rsDisque);

      RadioGrouptype_e.Items[1]:=(rsCroixX);
      RadioGrouptype_e.Items[2]:=(rsCercle);
      RadioGrouptype_e.Items[3]:=(rsCroix);
      CheckBoxrepresente.Caption := rsNePasReprSen ;
      BitBtn1.Caption := rsOK;
end;

procedure Tsaisietypedonnee.FormShow(Sender: TObject);
begin
   if encreation then begin scalefont(self); encreation:=false; end;
end;

initialization
  {$I unit22.lrs}

end.