RawDocument := '';
FEvent := nil;
ShowWindow(Self.Handle, SW_HIDE);
+ GikoSys.ShowRefCount('ResPop Create', Self.ControlInterface);
+ GikoSys.ShowRefCount('ResPop.Document Create', Self.ControlInterface.Document);
end;
destructor TResPopupBrowser.Destroy;
FEvent := nil;
end;
FThread := nil;
+
+ GikoSys.ShowRefCount('ResPop Desctroy', Self.ControlInterface);
+ GikoSys.ShowRefCount('ResPop.Document Create', Self.ControlInterface.Document);
+
inherited Destroy;
end;
end;
procedure TResPopupBrowser.NavigateBlank(Forced: Boolean);
begin
- if (not Assigned(Self.Document)) or (Forced) then begin
+ if (not Assigned(Self.ControlInterface.Document)) or (Forced) then begin
Self.Navigate('about:blank');
end;
while (Self.ReadyState <> READYSTATE_COMPLETE) and
ARect := CalcRect(Screen.MonitorFromPoint(p).WorkareaRect,
not OnlyTitle);
- FEvent := THTMLDocumentEventSink.Create(Self, Self.Document, HTMLDocumentEvents2);
+ FEvent := THTMLDocumentEventSink.Create(Self, Self.OleObject.Document, HTMLDocumentEvents2);
FEvent.OnClick := ResPopupBrowserClick;
FEvent.OnDoubleClick := ResPopupBrowserDbClick;
Self.Visible := True;
DIV_X, DIV_Y: Integer;
begin
GetCursorpos(p);
- ele := ((Self.Document as IHTMLDocument2).body as IHTMLElement2);
+ ele := ((Self.ControlInterface.Document as IHTMLDocument2).body as IHTMLElement2);
if Scroll then begin
h := GetWindowHeight + 10;
w := ele.scrollWidth + 25