File: unit12.pas

package info (click to toggle)
dozzaqueux 3.35-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,620 kB
  • ctags: 1,791
  • sloc: pascal: 34,605; xml: 961; makefile: 50; sh: 32
file content (112 lines) | stat: -rwxr-xr-x 2,778 bytes parent folder | download | duplicates (5)
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
unit Unit12;

{$mode objfpc}{$H+}

interface

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

type

  { Tsaisiecouleurs }

  Tsaisiecouleurs = class(TForm)
    BitBtn1: TBitBtn;
    ColorDialog1: TColorDialog;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Label5: TLabel;
    BitBtncouleurgrillegauche: TPanel;
    BitBtncouleurgrilledroite: TPanel;
    BitBtncouleurgraduations: TPanel;
    BitBtncouleurfond: TPanel;
    BitBtncouleuraxes: TPanel;
    procedure BitBtncouleuraxesClick(Sender: TObject);
    procedure BitBtncouleurfondClick(Sender: TObject);
    procedure BitBtncouleurgraduationsClick(Sender: TObject);
    procedure BitBtncouleurgrilledroiteClick(Sender: TObject);
    procedure BitBtncouleurgrillegaucheClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure FormShow(Sender: TObject);
  private
    { private declarations }
    encreation:boolean;
  public
    { public declarations }
  end; 

var
  saisiecouleurs: Tsaisiecouleurs;

implementation
  uses Unit1;
{ Tsaisiecouleurs }

procedure Tsaisiecouleurs.BitBtncouleurgrillegaucheClick(Sender: TObject);
begin
if colordialog1.Execute then
coucougrille1:=colordialog1.color;
BitBtncouleurgrillegauche.Color:=coucougrille1;
application.ProcessMessages;
end;

procedure Tsaisiecouleurs.FormCreate(Sender: TObject);
begin

   encreation:=true;
  Caption := rsCouleurs;
  Label1.Caption := rsCouleurGrill;
  Label2.Caption := rsCouleurGrill2;
  Label3.Caption := rsCouleurGradu;
  Label4.Caption := rsCouleurDuFon;
  Label5.Caption := rsCouleurDesAx;

end;

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

procedure Tsaisiecouleurs.BitBtncouleurgrilledroiteClick(Sender: TObject);
begin
 if colordialog1.Execute then
coucougrille2:=colordialog1.color;
BitBtncouleurgrilledroite.Color:=coucougrille2;
application.ProcessMessages;
end;

procedure Tsaisiecouleurs.BitBtncouleurgraduationsClick(Sender: TObject);
begin
if colordialog1.Execute then
coucougraduation:=colordialog1.color;
BitBtncouleurgraduations.Color:=coucougraduation;
policegraduation.Color:=coucougraduation;
application.ProcessMessages;
end;

procedure Tsaisiecouleurs.BitBtncouleurfondClick(Sender: TObject);
begin
if colordialog1.Execute then
coucoufond:=colordialog1.color;
BitBtncouleurfond.Color:=coucoufond;
application.ProcessMessages;
end;

procedure Tsaisiecouleurs.BitBtncouleuraxesClick(Sender: TObject);
begin
if colordialog1.Execute then
coucoucadre:=colordialog1.color;
BitBtncouleuraxes.Color:=coucoucadre;
application.ProcessMessages;
end;

initialization
  {$I unit12.lrs}

end.