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
|
||||
procedure Resize; override;
|
||||
|
||||
// TWinControl
|
||||
procedure CreateWnd; override;
|
||||
procedure DestroyWnd; override;
|
||||
|
||||
procedure Loaded; override;
|
||||
protected
|
||||
property Chrome: TCustomGeckoBrowserChrome
|
||||
read FChrome write SetChrome;
|
||||
@ -1050,14 +1047,9 @@ begin
|
||||
baseWin.SetPositionAndSize(rc.Left, rc.Top, rc.Right - rc.Left, rc.Bottom - rc.Top, False);
|
||||
end;
|
||||
|
||||
// TWinControl �p�
|
||||
procedure TCustomGeckoBrowser.CreateWnd;
|
||||
procedure TCustomGeckoBrowser.Loaded;
|
||||
begin
|
||||
{$IFDEF DEBUG}
|
||||
OutputDebugString('TGeckoBrowser.CreateWnd');
|
||||
{$ENDIF}
|
||||
inherited CreateWnd;
|
||||
|
||||
inherited Loaded;
|
||||
if not (csDesigning in ComponentState) then
|
||||
begin
|
||||
InitWebBrowser;
|
||||
@ -1071,14 +1063,6 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCustomGeckoBrowser.DestroyWnd;
|
||||
begin
|
||||
inherited DestroyWnd;
|
||||
{$IFDEF DEBUG}
|
||||
OutputDebugString('TGeckoBrowser.DestroyWnd');
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
procedure TCustomGeckoBrowser.GoBack;
|
||||
begin
|
||||
try
|
||||
|
Reference in New Issue
Block a user