// implementation
// ============================================================================
+#if wxUSE_EXTENDED_RTTI
+ wxIMPLEMENT_DYNAMIC_CLASS_XTI( wxHyperlinkCtrl, wxControl, "wx/hyperlink.h")
+#else
+ wxIMPLEMENT_DYNAMIC_CLASS( wxHyperlinkCtrl, wxControl )
+#endif // wxUSE_EXTENDED_RTTI
+
IMPLEMENT_DYNAMIC_CLASS(wxHyperlinkEvent, wxCommandEvent)
wxDEFINE_EVENT( wxEVT_COMMAND_HYPERLINK, wxHyperlinkEvent );
wxString url = GetURL();
wxHyperlinkEvent linkEvent(this, GetId(), url);
if (!GetEventHandler()->ProcessEvent(linkEvent)) // was the event skipped ?
+ {
if (!wxLaunchDefaultBrowser(url))
+ {
wxLogWarning(wxT("Could not launch the default browser with url '%s' !"), url.c_str());
+ }
+ }
}
#endif // wxUSE_HYPERLINKCTRL