V6.1
This commit is contained in:
42
UnitTCO.pas
42
UnitTCO.pas
@@ -383,7 +383,7 @@ var
|
||||
trajet : integer; // décrit le trajet ouvert sur la voie (cas d'un croisement ou d'ue tjd/S)
|
||||
inverse : boolean; // aiguillage piloté inversé
|
||||
repr : integer; // position de la représentation texte 0 = rien 1=centrale 2=Haut 3=Bas
|
||||
Texte : string; // texte de la cellule
|
||||
Texte : string; // texte de la cellule
|
||||
Fonte : string; // fonte du texte
|
||||
FontStyle : string; // GSIB (Gras Souligné Italique Barré)
|
||||
coulFonte : Tcolor;
|
||||
@@ -3251,6 +3251,7 @@ procedure affiche_cellule(x,y : integer);
|
||||
end;
|
||||
|
||||
|
||||
function style(s : string) : TfontStyles;
|
||||
var fs : tFontStyles;
|
||||
begin
|
||||
fs:=[];
|
||||
@@ -5286,27 +5287,28 @@ begin
|
||||
Brush.Color:=clblue;
|
||||
//FillRect(r);
|
||||
Rectangle(rAncien);
|
||||
end;
|
||||
SelectionAffichee:=false;
|
||||
end;
|
||||
end;
|
||||
|
||||
// clic gauche
|
||||
clicTCO:=true;
|
||||
GetCursorPos(Position);
|
||||
|
||||
Position:=formTCO.ImageTCO.screenToCLient(Position);
|
||||
|
||||
// clic gauche
|
||||
clicTCO:=true;
|
||||
GetCursorPos(Position);
|
||||
Xclic:=position.X;YClic:=position.Y;
|
||||
XclicCell:=Xclic div largeurCell +1;
|
||||
|
||||
Position:=formTCO.ImageTCO.screenToCLient(Position);
|
||||
//Affiche(IntToSTR(position.x),clyellow);
|
||||
Xclic:=position.X;YClic:=position.Y;
|
||||
XclicCell:=Xclic div largeurCell +1;
|
||||
YclicCell:=Yclic div hauteurCell +1;
|
||||
//Affiche('xcliccell='+IntToSTR(XclicCell)+' ycliccell='+IntToSTR(YclicCell),clyellow);
|
||||
if XclicCell>NbreCellX then exit;
|
||||
if YclicCell>NbreCellY then exit;
|
||||
Bimage:=tco[XClicCell,YClicCell].Bimage;
|
||||
|
||||
if formConfCellTCOAff then
|
||||
begin
|
||||
// si aiguillage, mettre à jour l'option de pilotage inverse
|
||||
if (bimage=2) or (bimage=3) or (bimage=4) or (bimage=5) or (bimage=12) or (bimage=13)
|
||||
//Affiche('xcliccell='+IntToSTR(XclicCell)+' ycliccell='+IntToSTR(YclicCell),clyellow);
|
||||
if XclicCell>NbreCellX then exit;
|
||||
if YclicCell>NbreCellY then exit;
|
||||
Bimage:=tco[XClicCell,YClicCell].Bimage;
|
||||
if formConfCellTCOAff then
|
||||
begin
|
||||
|
||||
// si aiguillage, mettre à jour l'option de pilotage inverse
|
||||
or (bimage=14) or (bimage=15) or (bimage=24) then
|
||||
begin
|
||||
|
||||
@@ -5333,6 +5335,10 @@ begin
|
||||
EditTexte.Text:=s;
|
||||
EditTexte.Visible:=true;
|
||||
ComboRepr.Enabled:=true;
|
||||
end
|
||||
else
|
||||
begin
|
||||
formTCO.EditTexte.Visible:=false;
|
||||
formTCO.comboRepr.Enabled:=false;
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user