mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 01:49:25 +02:00
view multiple forms now open all designer forms
git-svn-id: trunk@5084 -
This commit is contained in:
parent
6b0b23469e
commit
847f686e68
21
ide/main.pp
21
ide/main.pp
@ -4836,19 +4836,15 @@ Begin
|
|||||||
Result:=DoOpenEditorFile(AnUnitInfo.Filename,-1,[ofOnlyIfExists]);
|
Result:=DoOpenEditorFile(AnUnitInfo.Filename,-1,[ofOnlyIfExists]);
|
||||||
if Result=mrAbort then exit;
|
if Result=mrAbort then exit;
|
||||||
end;
|
end;
|
||||||
|
if OnlyForms and (AnUnitInfo.ComponentName<>'') then begin
|
||||||
|
AForm:=GetFormOfSource(AnUnitInfo,true);
|
||||||
|
if AForm<>nil then
|
||||||
|
ShowDesignerForm(AForm);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
if (AnUnitInfo<>nil) then begin
|
if (AnUnitInfo<>nil) and (not OnlyForms) then begin
|
||||||
AForm:=nil;
|
SourceNotebook.ShowOnTop;
|
||||||
if OnlyForms and (AnUnitInfo.ComponentName<>'') then begin
|
|
||||||
AForm:=GetFormOfSource(AnUnitInfo,true);
|
|
||||||
end;
|
|
||||||
if AForm=nil then
|
|
||||||
AForm:=SourceNotebook;
|
|
||||||
if csDesigning in AForm.ComponentState then
|
|
||||||
ShowDesignerForm(AForm)
|
|
||||||
else
|
|
||||||
AForm.ShowOnTop;
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
@ -10272,6 +10268,9 @@ end.
|
|||||||
|
|
||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.702 2004/01/22 15:24:17 mattias
|
||||||
|
view multiple forms now open all designer forms
|
||||||
|
|
||||||
Revision 1.701 2004/01/13 22:34:05 mattias
|
Revision 1.701 2004/01/13 22:34:05 mattias
|
||||||
changed consistency stops during method renaming to errors
|
changed consistency stops during method renaming to errors
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user