]> git.saurik.com Git - wxWidgets.git/commitdiff
add events API to wxHtmlWindow (patch #1504493 by Francesco Montorsi)
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 29 Oct 2006 21:13:58 +0000 (21:13 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 29 Oct 2006 21:13:58 +0000 (21:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/htmllbox.cpp

index 7e4f8d73e44f6eaac527daf703b9b212331d76ac..abaf644e22b1a53182a678d14ffa2d9ad2b8c0a6 100644 (file)
@@ -405,6 +405,13 @@ void wxHtmlListBox::OnHTMLLinkClicked(const wxHtmlLinkInfo& link)
     OnLinkClicked(GetItemForCell(link.GetHtmlCell()), 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),
 wxHtmlOpeningStatus
 wxHtmlListBox::OnHTMLOpeningURL(wxHtmlURLType WXUNUSED(type),
                                 const wxString& WXUNUSED(url),