FXRuby question: create a Link?

M

Martin Ankerl

Is there a platform-independent way to create a clickable text that
opens a webbrowser with a given link?

martinus
 
L

Lyle Johnson

Is there a platform-independent way to create a clickable text that
opens a webbrowser with a given link?

For the "widget" portion of the question, I've used a frameless button
for clickable text in the past.

As for what happens when you click the text, i.e. opening a web
browser, there's no platform-independent way to do that, I think. On
Win32, you'd want to use Win32API or some other means to call the
ShellExecute() function and open the link; on Unix/Linux, I guess
you'd want to fork off your web browser of choice.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,155
Messages
2,570,871
Members
47,401
Latest member
CliffGrime

Latest Threads

Top