procedure TForm1.WebBrowser1NewWindow2(Sender: TObject; var ppDisp: IDispatch; var Cancel: WordBool); begin memo1.Lines.add('WebBrowser1NewWindow2'); TabSheet := TTabSheet.Create(Owner); TabSheet.PageControl := PageControl1; Webbrowser2 := TCustomBrowser.Create(Owner); TWinControl(Webbrowser2).Parent := TabSheet; with Webbrowser2 Do begin Align := AlClient; ppDisp := WebBrowser2.Application; OnBeforeNavigate2 := WebBrowser1.OnBeforeNavigate2; OnCommandStateChange := WebBrowser1.OnCommandStateChange; OnDocumentComplete := WebBrowser1.OnDocumentComplete; OnDownloadBegin := WebBrowser1.OnDownloadBegin; OnDownloadComplete := WebBrowser1.OnDownloadComplete; OnDragDrop := WebBrowser1.OnDragDrop; OnDragOver := WebBrowser1.OnDragOver; OnEndDrag := WebBrowser1.OnEndDrag; OnEnter := WebBrowser1.OnEnter; OnExit := WebBrowser1.OnExit; OnFullScreen := WebBrowser1.OnFullScreen; OnMenuBar := WebBrowser1.OnMenuBar; OnNavigateComplete2 := WebBrowser1.OnNavigateComplete2; OnNewWindow2 := WebBrowser1.OnNewWindow2; OnProgressChange := WebBrowser1.OnProgressChange; OnPropertyChange := WebBrowser1.OnPropertyChange; OnQuit := WebBrowser1.OnQuit; OnStartDrag := WebBrowser1.OnStartDrag; OnStatusBar := WebBrowser1.OnStatusBar; OnStatusTextChange := WebBrowser1.OnStatusTextChange; OnTheaterMode := WebBrowser1.OnTheaterMode; OnToolBar := WebBrowser1.OnToolBar; OnVisible := WebBrowser1.OnVisible; end; PageControl1.ActivePageIndex := PageControl1.PageCount - 1; end;
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question