File: unit27.pas

package info (click to toggle)
dozzaqueux 3.51-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,780 kB
  • sloc: pascal: 35,831; xml: 961; makefile: 50; sh: 32
file content (90 lines) | stat: -rwxr-xr-x 1,935 bytes parent folder | download | duplicates (3)
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
unit Unit27;

{$mode objfpc}{$H+}

interface

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

type

  { TForm27 }

  TForm27 = class(TForm)
    BitBtn1: TBitBtn;
    CheckListBoxSimulations: TCheckListBox;
    SpeedButton1: TSpeedButton;
    SpeedButton2: TSpeedButton;
    procedure BitBtn1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure FormShow(Sender: TObject);
    procedure SpeedButton1Click(Sender: TObject);
    procedure SpeedButton2Click(Sender: TObject);
  private
    { private declarations }
    encreation:boolean;
  public
    { public declarations }
  end; 

var
  Form27: TForm27;

implementation
      uses Unit1;
{ TForm27 }

procedure TForm27.BitBtn1Click(Sender: TObject);
var i:integer;
susu:boolean;
begin
for i:=nombre_simulations-1 downto 1 do
stockage_simulation_superposee[i-1]:=
checklistboxsimulations.Checked[nombre_simulations-i-1];
susu:=false;
for i:=1  to nombre_simulations-1 do
susu:=susu or stockage_simulation_superposee[i-1];
mode_superposition:=susu;
form1.CheckBoxsuperposition.Checked:=susu;
//form1.dessinegraphe;
 // form1.mcPaint(sender);
end;

procedure TForm27.FormCreate(Sender: TObject);
begin

    encreation:=true;
  Caption := rsListeDesSimu ;
      SpeedButton1.Caption := rsToutCocher ;
        SpeedButton2.Caption := rsToutDCocher ;
        BitBtn1.Caption := rsOK;


end;

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

procedure TForm27.SpeedButton1Click(Sender: TObject);
var i:integer;
begin
for i:=1  to nombre_simulations-1 do
checklistboxsimulations.Checked[i-1]:=true;
end;

procedure TForm27.SpeedButton2Click(Sender: TObject);
var i:integer;
begin
for i:=1  to nombre_simulations-1 do
checklistboxsimulations.Checked[i-1]:=false;
end;

initialization
  {$I unit27.lrs}

end.