this feature is just for sawce (updated go to line dialog)
This commit is contained in:
parent
461e7de151
commit
9740f6469d
Binary file not shown.
Binary file not shown.
|
@ -9,13 +9,14 @@ uses
|
||||||
|
|
||||||
type
|
type
|
||||||
TfrmGoToLine = class(TForm)
|
TfrmGoToLine = class(TForm)
|
||||||
|
pnlBG: TSpTBXPanel;
|
||||||
lblCaption: TLabel;
|
lblCaption: TLabel;
|
||||||
txtGoToLine: TSpTBXEdit;
|
|
||||||
cmdOK: TSpTBXButton;
|
|
||||||
cmdCancel: TSpTBXButton;
|
cmdCancel: TSpTBXButton;
|
||||||
procedure txtGoToLineChange(Sender: TObject);
|
cmdOK: TSpTBXButton;
|
||||||
|
txtGoToLine: TSpTBXEdit;
|
||||||
procedure txtGoToLineKeyPress(Sender: TObject; var Key: Char);
|
procedure txtGoToLineKeyPress(Sender: TObject; var Key: Char);
|
||||||
procedure FormShow(Sender: TObject);
|
procedure FormShow(Sender: TObject);
|
||||||
|
procedure txtGoToLineChange(Sender: TObject);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
|
@ -27,14 +28,6 @@ uses UnitMainTools;
|
||||||
|
|
||||||
{$R *.DFM}
|
{$R *.DFM}
|
||||||
|
|
||||||
procedure TfrmGoToLine.txtGoToLineChange(Sender: TObject);
|
|
||||||
begin
|
|
||||||
if not IsNumeric(txtGoToLine.Text) then
|
|
||||||
txtGoToLine.Text := '1'
|
|
||||||
else if txtGoToLine.Text = '0' then
|
|
||||||
txtGoToLine.Text := '1';
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfrmGoToLine.txtGoToLineKeyPress(Sender: TObject; var Key: Char);
|
procedure TfrmGoToLine.txtGoToLineKeyPress(Sender: TObject; var Key: Char);
|
||||||
begin
|
begin
|
||||||
if Key = #13 then begin
|
if Key = #13 then begin
|
||||||
|
@ -46,6 +39,12 @@ end;
|
||||||
procedure TfrmGoToLine.FormShow(Sender: TObject);
|
procedure TfrmGoToLine.FormShow(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
txtGoToLine.SetFocus;
|
txtGoToLine.SetFocus;
|
||||||
|
txtGoToLine.SelectAll;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmGoToLine.txtGoToLineChange(Sender: TObject);
|
||||||
|
begin
|
||||||
|
cmdOK.Enabled := StrToIntDef(txtGoToLine.Text, -1) > 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user