fixed 2nd bug at48369
This commit is contained in:
parent
0c345ceebc
commit
34f127b9aa
Binary file not shown.
|
@ -7375,8 +7375,8 @@ object frmHudMsgGenerator: TfrmHudMsgGenerator
|
|||
ColorHighLight = 8623776
|
||||
ColorShadow = 8623776
|
||||
Caption = 'Generate'
|
||||
ModalResult = 1
|
||||
TabOrder = 4
|
||||
ModalResult = 1
|
||||
end
|
||||
object cmdCancel: TFlatButton
|
||||
Left = 334
|
||||
|
@ -7388,8 +7388,8 @@ object frmHudMsgGenerator: TfrmHudMsgGenerator
|
|||
ColorHighLight = 8623776
|
||||
ColorShadow = 8623776
|
||||
Caption = 'Cancel'
|
||||
ModalResult = 2
|
||||
TabOrder = 5
|
||||
ModalResult = 2
|
||||
end
|
||||
object pnlText: TPanel
|
||||
Left = 6
|
||||
|
@ -7430,7 +7430,7 @@ object frmHudMsgGenerator: TfrmHudMsgGenerator
|
|||
ColorFlat = clWhite
|
||||
TabOrder = 1
|
||||
Text = '12,0'
|
||||
OnChange = txtTimeToShowChange
|
||||
OnExit = txtTimeToShowExit
|
||||
OnKeyPress = txtTimeToShowKeyPress
|
||||
end
|
||||
end
|
||||
|
|
|
@ -47,10 +47,10 @@ type
|
|||
procedure cmdSelectColorClick(Sender: TObject);
|
||||
procedure txtTextChange(Sender: TObject);
|
||||
procedure txtTimeToShowKeyPress(Sender: TObject; var Key: Char);
|
||||
procedure txtTimeToShowChange(Sender: TObject);
|
||||
procedure chkXCenterClick(Sender: TObject);
|
||||
procedure chkYCenterClick(Sender: TObject);
|
||||
procedure txtPosExit(Sender: TObject);
|
||||
procedure txtTimeToShowExit(Sender: TObject);
|
||||
private
|
||||
eDown: Boolean;
|
||||
eStartPos: TPoint;
|
||||
|
@ -210,20 +210,6 @@ begin
|
|||
Key := ',';
|
||||
end;
|
||||
|
||||
procedure TfrmHudMsgGenerator.txtTimeToShowChange(Sender: TObject);
|
||||
var eVal: Real;
|
||||
begin
|
||||
try
|
||||
eVal := Round(StrToFloat(txtTimeToShow.Text));
|
||||
if eVal < 0 then begin
|
||||
eVal := 0.0;
|
||||
txtTimeToShow.Text := FloatToStr(eVal);
|
||||
end;
|
||||
except
|
||||
txtTimeToShow.Text := '12,0';
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmHudMsgGenerator.chkXCenterClick(Sender: TObject);
|
||||
var eChar: Char;
|
||||
begin
|
||||
|
@ -276,4 +262,18 @@ begin
|
|||
txtYPos.OnKeyPress(txtXPos, eChar);
|
||||
end;
|
||||
|
||||
procedure TfrmHudMsgGenerator.txtTimeToShowExit(Sender: TObject);
|
||||
var eVal: Real;
|
||||
begin
|
||||
try
|
||||
eVal := Round(StrToFloat(txtTimeToShow.Text));
|
||||
if eVal < 0 then begin
|
||||
eVal := 0.0;
|
||||
txtTimeToShow.Text := '0,0';
|
||||
end;
|
||||
except
|
||||
txtTimeToShow.Text := '12,0';
|
||||
end;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
|
|
@ -1706,6 +1706,7 @@ procedure TfrmMain.mnuHudmessageClick(Sender: TObject);
|
|||
function Dot(eIn: string): string;
|
||||
begin
|
||||
Result := StringReplace(eIn, ',', '.', [rfReplaceAll]);
|
||||
Result := StringReplace(eIn, '.00', '.0', [rfReplaceAll]);
|
||||
end;
|
||||
|
||||
var eStr: string;
|
||||
|
|
Loading…
Reference in New Issue
Block a user