From: Václav Slavík Date: Sun, 29 Oct 2006 21:13:58 +0000 (+0000) Subject: add events API to wxHtmlWindow (patch #1504493 by Francesco Montorsi) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a3b5cead1af990df004c0a7e180e148f066d8902 add events API to wxHtmlWindow (patch #1504493 by Francesco Montorsi) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/htmllbox.cpp b/src/generic/htmllbox.cpp index 7e4f8d73e4..abaf644e22 100644 --- a/src/generic/htmllbox.cpp +++ b/src/generic/htmllbox.cpp @@ -405,6 +405,13 @@ void wxHtmlListBox::OnHTMLLinkClicked(const wxHtmlLinkInfo& link) OnLinkClicked(GetItemForCell(link.GetHtmlCell()), link); } +void wxHtmlListBox::OnLinkClicked(size_t WXUNUSED(n), + const wxHtmlLinkInfo& link) +{ + wxHtmlLinkEvent event(GetId(), link); + GetEventHandler()->ProcessEvent(event); +} + wxHtmlOpeningStatus wxHtmlListBox::OnHTMLOpeningURL(wxHtmlURLType WXUNUSED(type), const wxString& WXUNUSED(url),