finshed Make Resourcestring dialog and implemented TToggleBox

git-svn-id: trunk@3047 -
This commit is contained in:
mattias 2002-08-18 08:57:18 +00:00
parent 002d908716
commit ec6eb3c91e

View File

@ -229,6 +229,7 @@ type
// selections
Procedure SelectText(LineNum,CharStart,LineNum2,CharEnd : Integer);
procedure ReplaceLines(StartLine, EndLine: integer; const NewText: string);
procedure UpperCaseSelection;
procedure LowerCaseSelection;
procedure TabsToSpacesInSelection;
@ -1705,6 +1706,16 @@ Begin
FEditor.BlockEnd := P;
end;
procedure TSourceEditor.ReplaceLines(StartLine, EndLine: integer;
const NewText: string);
begin
FEditor.BeginUndoBlock;
FEditor.BlockBegin:=Point(1,StartLine);
FEditor.BlockEnd:=Point(length(FEditor.Lines[Endline-1])+1,EndLine);
FEditor.SelText:=NewText;
FEditor.EndUndoBlock;
end;
Function TSourceEditor.GetModified : Boolean;
Begin
Result := FEditor.Modified or FModified;