|
@@ -466,6 +466,7 @@ resourcestring sClipboard='Clipboard';
|
|
sUntitled='Untitled';
|
|
sUntitled='Untitled';
|
|
sWordWrapNotPossible='Wordwrap on: Wordwrap not possible in current margins with continuous line.';
|
|
sWordWrapNotPossible='Wordwrap on: Wordwrap not possible in current margins with continuous line.';
|
|
sWordWrapOff='You must turn on wordwrap before you can reformat.';
|
|
sWordWrapOff='You must turn on wordwrap before you can reformat.';
|
|
|
|
+ sSaveFileAs='Save file as';
|
|
|
|
|
|
slCaseSensitive='~C~ase sensitive';
|
|
slCaseSensitive='~C~ase sensitive';
|
|
slCurrentLine='~C~urrent line';
|
|
slCurrentLine='~C~urrent line';
|
|
@@ -941,7 +942,7 @@ begin
|
|
StdEditorDialog := MessageBox(sFileUntitled, nil, mfInformation + mfYesNoCancel);
|
|
StdEditorDialog := MessageBox(sFileUntitled, nil, mfInformation + mfYesNoCancel);
|
|
edSaveAs:
|
|
edSaveAs:
|
|
StdEditorDialog := Application^.ExecuteDialog(New(PFileDialog, Init('*.*',
|
|
StdEditorDialog := Application^.ExecuteDialog(New(PFileDialog, Init('*.*',
|
|
- slSaveFileAs, slName, fdOkButton, 101)), Info);
|
|
|
|
|
|
+ sSaveFileAs, slName, fdOkButton, 101)), Info);
|
|
edFind:
|
|
edFind:
|
|
StdEditorDialog := Application^.ExecuteDialog(CreateFindDialog, Info);
|
|
StdEditorDialog := Application^.ExecuteDialog(CreateFindDialog, Info);
|
|
edSearchFailed:
|
|
edSearchFailed:
|
|
@@ -1097,7 +1098,7 @@ Var
|
|
begin
|
|
begin
|
|
BMMakeTable(str,bt);
|
|
BMMakeTable(str,bt);
|
|
len:=length(str);
|
|
len:=length(str);
|
|
- s2[0]:=chr(len); { sets the length to that of the search String }
|
|
|
|
|
|
+ SetLength(s2,len); { sets the length to that of the search String }
|
|
found:=False;
|
|
found:=False;
|
|
numb:=pred(len);
|
|
numb:=pred(len);
|
|
While (not found) and (numb<(size-len)) do
|
|
While (not found) and (numb<(size-len)) do
|
|
@@ -1146,7 +1147,7 @@ begin
|
|
exit;
|
|
exit;
|
|
end;
|
|
end;
|
|
{ create uppercased string }
|
|
{ create uppercased string }
|
|
- s[0]:=chr(len);
|
|
|
|
|
|
+ SetLength(s,len);
|
|
for x:=1 to len do
|
|
for x:=1 to len do
|
|
begin
|
|
begin
|
|
if str[x] in ['a'..'z'] then
|
|
if str[x] in ['a'..'z'] then
|
|
@@ -3197,7 +3198,6 @@ begin
|
|
if Length (Tab_String) = 0 then
|
|
if Length (Tab_String) = 0 then
|
|
begin
|
|
begin
|
|
FillChar (Tab_Settings, SizeOf (Tab_Settings), #0);
|
|
FillChar (Tab_Settings, SizeOf (Tab_Settings), #0);
|
|
- Tab_Settings[0] := #0;
|
|
|
|
Exit;
|
|
Exit;
|
|
end
|
|
end
|
|
else
|
|
else
|
|
@@ -3254,7 +3254,7 @@ begin
|
|
Position := CurPos.X + 1;
|
|
Position := CurPos.X + 1;
|
|
repeat
|
|
repeat
|
|
Inc (Position);
|
|
Inc (Position);
|
|
- until (Tab_Settings[Position] <> #32) or (Position >= Ord (Tab_Settings[0]));
|
|
|
|
|
|
+ until (Tab_Settings[Position] <> #32) or (Position >= Length (Tab_Settings));
|
|
E := CurPos.X;
|
|
E := CurPos.X;
|
|
Index := 1;
|
|
Index := 1;
|
|
{ Now we enter a loop to go to the next tab position. }
|
|
{ Now we enter a loop to go to the next tab position. }
|
|
@@ -3267,7 +3267,7 @@ begin
|
|
if Overwrite then
|
|
if Overwrite then
|
|
begin
|
|
begin
|
|
if (Position > LineEnd (CurPtr) - LineStart (CurPtr))
|
|
if (Position > LineEnd (CurPtr) - LineStart (CurPtr))
|
|
- or (Position > Ord (Tab_Settings[0])) then
|
|
|
|
|
|
+ or (Position > Length (Tab_Settings)) then
|
|
begin
|
|
begin
|
|
SetCurPtr (LineStart (LineMove (CurPtr, 1)), Select_Mode);
|
|
SetCurPtr (LineStart (LineMove (CurPtr, 1)), Select_Mode);
|
|
Exit;
|
|
Exit;
|
|
@@ -3278,7 +3278,7 @@ begin
|
|
end
|
|
end
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
- if (Position > Right_Margin) or (Position > Ord (Tab_Settings[0])) then
|
|
|
|
|
|
+ if (Position > Right_Margin) or (Position > Length (Tab_Settings)) then
|
|
begin
|
|
begin
|
|
SetCurPtr (LineStart (LineMove (CurPtr, 1)), Select_Mode);
|
|
SetCurPtr (LineStart (LineMove (CurPtr, 1)), Select_Mode);
|
|
Exit;
|
|
Exit;
|