Generate hyperlink event Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
raananb
Super wx Problem Solver
Super wx Problem Solver
Posts: 488
Joined: Fri Oct 27, 2006 4:35 pm
Location: Paris, France
Contact:

Generate hyperlink event

Post by raananb »

My application has a wxHyperlinkCtrl, associated with an event handler which processes a wxHyperlinkEvent.

When the HyperlinkCtrl is clicked, the event handler processes the event and the specified url is opened.

Is there a way to generate the event from the application, bypassing the click?
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Generate hyperlink event

Post by doublemax »

It's probably easier to just call wxLaunchDefaultBrowser() directly.

https://docs.wxwidgets.org/trunk/group_ ... 6f283615ca
Use the source, Luke!
raananb
Super wx Problem Solver
Super wx Problem Solver
Posts: 488
Joined: Fri Oct 27, 2006 4:35 pm
Location: Paris, France
Contact:

Re: Generate hyperlink event

Post by raananb »

That was a good idea.
Post Reply