X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c731eb47101d4656e5b736ce8e377830911bbe1d..5ce4d9fa3788e3588105437688590d8490e557c8:/wxPython/contrib/iewin/readme.txt diff --git a/wxPython/contrib/iewin/readme.txt b/wxPython/contrib/iewin/readme.txt index 13dd413a94..cbc8e593dd 100644 --- a/wxPython/contrib/iewin/readme.txt +++ b/wxPython/contrib/iewin/readme.txt @@ -30,7 +30,14 @@ Source Files: Event Handling: --------------- -- None currently +- EVT_ACTIVEX(id, eventName, handler) (handler = void OnActiveX(wxActiveXEvent& event)) +class wxActiveXEvent : public wxNotifyEvent + int ParamCount() const; + wxVariant operator[] (int idx) const; // parameter by index + wxVariant& operator[] (int idx); + wxVariant operator[] (wxString name) const; // named parameters + wxVariant& operator[] (wxString name); + Members: -------- @@ -60,6 +67,19 @@ e.g. delete events; +Sample Events: +-------------- +EVT_ACTIVEX(ID_MSHTML, "BeforeNavigate2", OnMSHTMLBeforeNavigate2X) + +void wxIEFrame::OnMSHTMLBeforeNavigate2X(wxActiveXEvent& event) +{ + wxString url = event["Url"]; + + int rc = wxMessageBox(url, "Allow open url ?", wxYES_NO); + + if (rc != wxYES) + event["Cancel"] = true; +}; wxIEHtmlWin: