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