-
I would like to know how to attach a procedure to the OnBeforeNavigate2 in a kol webbrowser app (KOLSHDocVw). I have tried this
procedure b4nav(Sender: TObject;const pDisp: IDispatch; var URL, Flags, TargetFrameName, PostData,Headers: OleVariant; var Cancel: WordBool); begin end; with wb.OnBeforeNavigate2:=twebbrowserbeforenavigate2(makemethod(nil,b4nav)); and wb.OnBeforeNavigate2:=twebbrowserbeforenavigate2(tonevent(makemethod(nil,b4nav(d [i],d[i],d[i].locationurl,0,nil,nil,nil,false))));
thanks
-
-
excellent thank you
|