You've already forked lazarus-ccr
* initialize webbrowser on loaded, instead of createwnd, so that it is possible to use the webbrowser in FromCreate
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1366 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -236,10 +236,7 @@ type
|
|||||||
// TControl
|
// TControl
|
||||||
procedure Resize; override;
|
procedure Resize; override;
|
||||||
|
|
||||||
// TWinControl
|
procedure Loaded; override;
|
||||||
procedure CreateWnd; override;
|
|
||||||
procedure DestroyWnd; override;
|
|
||||||
|
|
||||||
protected
|
protected
|
||||||
property Chrome: TCustomGeckoBrowserChrome
|
property Chrome: TCustomGeckoBrowserChrome
|
||||||
read FChrome write SetChrome;
|
read FChrome write SetChrome;
|
||||||
@ -1050,14 +1047,9 @@ begin
|
|||||||
baseWin.SetPositionAndSize(rc.Left, rc.Top, rc.Right - rc.Left, rc.Bottom - rc.Top, False);
|
baseWin.SetPositionAndSize(rc.Left, rc.Top, rc.Right - rc.Left, rc.Bottom - rc.Top, False);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// TWinControl �p�
|
procedure TCustomGeckoBrowser.Loaded;
|
||||||
procedure TCustomGeckoBrowser.CreateWnd;
|
|
||||||
begin
|
begin
|
||||||
{$IFDEF DEBUG}
|
inherited Loaded;
|
||||||
OutputDebugString('TGeckoBrowser.CreateWnd');
|
|
||||||
{$ENDIF}
|
|
||||||
inherited CreateWnd;
|
|
||||||
|
|
||||||
if not (csDesigning in ComponentState) then
|
if not (csDesigning in ComponentState) then
|
||||||
begin
|
begin
|
||||||
InitWebBrowser;
|
InitWebBrowser;
|
||||||
@ -1071,14 +1063,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCustomGeckoBrowser.DestroyWnd;
|
|
||||||
begin
|
|
||||||
inherited DestroyWnd;
|
|
||||||
{$IFDEF DEBUG}
|
|
||||||
OutputDebugString('TGeckoBrowser.DestroyWnd');
|
|
||||||
{$ENDIF}
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TCustomGeckoBrowser.GoBack;
|
procedure TCustomGeckoBrowser.GoBack;
|
||||||
begin
|
begin
|
||||||
try
|
try
|
||||||
|
Reference in New Issue
Block a user