LCL: make TCustomForm.Show Delphi compatible -> bring form to front and activate it

git-svn-id: trunk@12760 -
This commit is contained in:
tombo 2007-11-06 10:15:01 +00:00
parent 4e7a9679ed
commit 620ffeb1e7
3 changed files with 4 additions and 4 deletions

View File

@ -2363,7 +2363,7 @@ biHelp - When you click this button a Question Cursor appears and the help routi
</element> </element>
<!-- procedure Visibility: public --> <!-- procedure Visibility: public -->
<element name="TCustomForm.Show"> <element name="TCustomForm.Show">
<short/> <short>Shows, brings to front and activates the form</short>
<descr/> <descr/>
<errors/> <errors/>
<seealso/> <seealso/>

View File

@ -1329,7 +1329,6 @@ begin
SourceNotebook.GetActiveSE.GetWordAtCurrentCaret; SourceNotebook.GetActiveSE.GetWordAtCurrentCaret;
end; end;
FDialogs[ADialogType].Show; FDialogs[ADialogType].Show;
FDialogs[ADialogType].BringToFront;
end; end;
procedure TDebugManager.DestroyDebugDialog(const ADialogType: TDebugDialogType); procedure TDebugManager.DestroyDebugDialog(const ADialogType: TDebugDialogType);

View File

@ -1525,7 +1525,8 @@ end;
------------------------------------------------------------------------------} ------------------------------------------------------------------------------}
procedure TCustomForm.Show; procedure TCustomForm.Show;
begin begin
Visible:=true; Visible := True;
BringToFront;
end; end;
{------------------------------------------------------------------------------ {------------------------------------------------------------------------------
@ -1533,7 +1534,7 @@ end;
------------------------------------------------------------------------------} ------------------------------------------------------------------------------}
procedure TCustomForm.ShowOnTop; procedure TCustomForm.ShowOnTop;
begin begin
Show; Visible := True;
if WindowState=wsMinimized then WindowState:=wsNormal; if WindowState=wsMinimized then WindowState:=wsNormal;
BringToFront; BringToFront;
//DebugLn('TCustomForm.ShowOnTop ',Name,':',ClassName,' ',Visible,' ',HandleAllocated,' ',csDesigning in ComponentState); //DebugLn('TCustomForm.ShowOnTop ',Name,':',ClassName,' ',Visible,' ',HandleAllocated,' ',csDesigning in ComponentState);