Clicking a link in wxHtmlWindow ...
Jorgen Bodde
jorgen.maillist at gmail.com
Mon Jun 11 00:32:57 PDT 2007
Hi,
Is there any reason why a local anchor gets caught by
EVT_HTML_LINK_CLICKED, but when I add a HTTP link this gets bypassed?
I would like to open an external browser upon clicking a web site url,
but the default handler seems to always load it from the internet
inside the wxHtmlWindow.
I tried to obfuscate the link by adding something like;
<a href="external:http://etc.com">http://etc.com</a>
But it seems the internal manager gets clever and notices the http://
signature inside the string and still bypasses the OnLinkClicked
handler.
Since I am creating my GUI from XRC, it's not preferred to add a
handler to create a custom html window with overridden OnOpeningURL
virtual functions.
Is there any other way to bypass this default behavior?
Regards,
- Jorgen
More information about the wx-dev
mailing list