mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 05:19:25 +02:00
SpartaDockedFormEditor: Project with a form shows now the correct source editor (last tab position) after reopening.
git-svn-id: trunk@58175 -
This commit is contained in:
parent
4efc47f4df
commit
7407d2a0d2
@ -445,6 +445,10 @@ procedure TDesignFormData.WndMethod(var Msg: TLMessage);
|
|||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
|
// Just do it for new created forms or the last loaded form becomes the active
|
||||||
|
// source editor after reopening a project.
|
||||||
|
if Form.Form.Designer <> SourceEditorManagerIntf.ActiveEditor.GetDesigner(True) then Exit;
|
||||||
|
|
||||||
SourceEditorManagerIntf.ActiveEditor := nil;
|
SourceEditorManagerIntf.ActiveEditor := nil;
|
||||||
for i := 0 to SourceEditorManagerIntf.UniqueSourceEditorCount - 1 do
|
for i := 0 to SourceEditorManagerIntf.UniqueSourceEditorCount - 1 do
|
||||||
if Form.Form.Designer = SourceEditorManagerIntf.UniqueSourceEditors[i].GetDesigner(True) then
|
if Form.Form.Designer = SourceEditorManagerIntf.UniqueSourceEditors[i].GetDesigner(True) then
|
||||||
@ -465,8 +469,7 @@ begin
|
|||||||
KillTimer(FForm.Form.Handle, WM_SETNOFRAME);
|
KillTimer(FForm.Form.Handle, WM_SETNOFRAME);
|
||||||
ShowWindow(Form.Form.Handle, SW_HIDE);
|
ShowWindow(Form.Form.Handle, SW_HIDE);
|
||||||
FHiding := False;
|
FHiding := False;
|
||||||
if Form.Form = LazarusIDE.LastFormActivated then
|
FixF12_ActiveEditor;
|
||||||
FixF12_ActiveEditor;
|
|
||||||
if Form.Form is TFakeForm then
|
if Form.Form is TFakeForm then
|
||||||
RepaintFormImages;
|
RepaintFormImages;
|
||||||
Exit;
|
Exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user