Forum: Netzwerke
Delphi
by marabu,
4. Jan 2006
Alpha1, you have investigated your code well. Besides that one mistake you made there is nothing in it to point fingers to. In fact I just ran the corrected code in a tiny test project and it does what you would expect. If the code fails in your project, chance is you are doing evil things elsewhere. Try to isolate the corrected code I gave you in a test project and see for yourself.
marabu
Forum: Netzwerke
Delphi
by marabu,
4. Jan 2006
Hello alpha1,
your code will perform better if you take care of the time you advance the ActivePageIndex. You might as well use the Web variable to retrieve the correct browser interface to return:
procedure TForm1.WebBrowser1NewWindow2(Sender: TObject;
var ppDisp: IDispatch; var Cancel: WordBool);
var
TabSheet: TTabSheet;
Web: TWebbrowser;