Hi,
I am using the HtmlWindow and I want to launch an external browser
window, but it seems the event wx.html.EVT_HTML_LINK_CLICKED only
gets clicked for anchors or internal links. Is this desired behavior?
I do know that OnLinkClicked virtual function works for an external
link, because this is shown properly in the demo, but I do use XRC to
load my GUI and do not wish to implement a custom handler to create a
custom HTML window.
I asked on the wx-dev mailinglist and Vaclav said it should work by
event as well, but the http links simply seem to be bypassed in the
handler.
Any ideas?
With regards,
- Jorgen
Hi,
what platform/wx version are you using? This small test example works
fine for both internal and external links on wxGTK 2.8.4.0.
Regards,
Roman
html.zip (1.55 KB)
···
On Mon, 2007-06-11 at 09:49 +0200, Jorgen Bodde wrote:
Hi,
I am using the HtmlWindow and I want to launch an external browser
window, but it seems the event wx.html.EVT_HTML_LINK_CLICKED only
gets clicked for anchors or internal links. Is this desired behavior?
I do know that OnLinkClicked virtual function works for an external
link, because this is shown properly in the demo, but I do use XRC to
load my GUI and do not wish to implement a custom handler to create a
custom HTML window.
I asked on the wx-dev mailinglist and Vaclav said it should work by
event as well, but the http links simply seem to be bypassed in the
handler.
Any ideas?
With regards,
- Jorgen
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Hi Roman,
Thanks a lot for demonstrating this. I am really puzzled as I have
implemented the same handler as you did, but they do not seem to get
through. I am going to investigate this further but as you so kindly
demonstrated in the sample, it seems to work.
Thanks a lot for putting effort in the demonstration sample!
With regards,
- Jorgen
···
On 6/11/07, Roman Rolinsky <rolinsky@femagsoft.com> wrote:
Hi,
what platform/wx version are you using? This small test example works
fine for both internal and external links on wxGTK 2.8.4.0.
Regards,
Roman
On Mon, 2007-06-11 at 09:49 +0200, Jorgen Bodde wrote:
> Hi,
>
> I am using the HtmlWindow and I want to launch an external browser
> window, but it seems the event wx.html.EVT_HTML_LINK_CLICKED only
> gets clicked for anchors or internal links. Is this desired behavior?
> I do know that OnLinkClicked virtual function works for an external
> link, because this is shown properly in the demo, but I do use XRC to
> load my GUI and do not wish to implement a custom handler to create a
> custom HTML window.
>
> I asked on the wx-dev mailinglist and Vaclav said it should work by
> event as well, but the http links simply seem to be bypassed in the
> handler.
>
> Any ideas?
>
> With regards,
> - Jorgen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Ok, hanging my head in deep shame. I have two HTML windows, and guess
what, I only implemented the handler in one, nut not in the other.
*sigh* .. Sometimes I wonder if I still have a brain ;-(
Thanks again for the support!
- Jorgen
···
On 6/11/07, Jorgen Bodde <jorgen.maillist@gmail.com> wrote:
Hi Roman,
Thanks a lot for demonstrating this. I am really puzzled as I have
implemented the same handler as you did, but they do not seem to get
through. I am going to investigate this further but as you so kindly
demonstrated in the sample, it seems to work.
Thanks a lot for putting effort in the demonstration sample!
With regards,
- Jorgen
On 6/11/07, Roman Rolinsky <rolinsky@femagsoft.com> wrote:
> Hi,
>
> what platform/wx version are you using? This small test example works
> fine for both internal and external links on wxGTK 2.8.4.0.
>
> Regards,
> Roman
>
> On Mon, 2007-06-11 at 09:49 +0200, Jorgen Bodde wrote:
> > Hi,
> >
> > I am using the HtmlWindow and I want to launch an external browser
> > window, but it seems the event wx.html.EVT_HTML_LINK_CLICKED only
> > gets clicked for anchors or internal links. Is this desired behavior?
> > I do know that OnLinkClicked virtual function works for an external
> > link, because this is shown properly in the demo, but I do use XRC to
> > load my GUI and do not wish to implement a custom handler to create a
> > custom HTML window.
> >
> > I asked on the wx-dev mailinglist and Vaclav said it should work by
> > event as well, but the http links simply seem to be bypassed in the
> > handler.
> >
> > Any ideas?
> >
> > With regards,
> > - Jorgen
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> > For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
>