IDE: Explicitly set caret pos for new files

git-svn-id: trunk@26022 -
This commit is contained in:
martin 2010-06-10 10:47:32 +00:00
parent aaa3a1a5a9
commit daaf81101d

View File

@ -7877,6 +7877,7 @@ begin
MainIDEBar.itmFileCloseAll.Enabled:=True;
NewSrcEdit.SyntaxHighlighterType:=NewUnitInfo.EditorInfo[0].SyntaxHighlighter;
NewUnitInfo.GetClosedOrNewEditorInfo.EditorComponent := NewSrcEdit;
NewSrcEdit.EditorComponent.CaretXY := Point(1,1);
// create component
AncestorType:=NewFileDescriptor.ResourceClass;