On Thu, Nov 20, 2008 at 9:55 PM, Evan DeMond <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> Hate to bother the list, but I've been trying to figure out how to handle
> URL clicks in wxTextCtrl and I haven't been too successful:
>
> I've connected a handler to wxEVT_COMMAND_TEXT_URL and am able to receive an
> event when I click or mouse over a URL. From there, I'd like to extract that
> URL so I can launch a browser for it. The event I get is a wxCommandEvent,
> though, and it doesn't seem to have any data. Being a wxCommandEvent, it
> doesn't have the functions I read about here -
> http://wiki.wxwidgets.org/WxTextUrlEvent - and of all of the Get functions
> return 0, nil, false, etc.

What about GetString()? Doesn't that return the string of the URL? The
only thing that the wxTextUrlEvent adds are functions to get the
integer start and end position of the URL in the textctrl.

> My Googling turns up a few bug bounties about this in wxWidgets itself; it
> seems like it's not supported on all platforms yet. That being the case,
> does wxLua have a binding for this currently?

I think the wxTextUrlEvent is new(ish) and I will add it for the 2.8.9
version of wxLua.

Regards,
    John

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to