Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » adding link
adding link [message #16833] Wed, 16 July 2008 10:03 Go to next message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

hello all
i want to add a link in my design when user click on it it opens in the browser

thx in advance
Re: adding link [message #16835 is a reply to message #16833] Wed, 16 July 2008 10:58 Go to previous messageGo to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
Hi,
There are many way to add a link in your app.
You can use RichTextCtrl:
rtc.SetQTF("Made with [^ultimatepp.org^ Ultimate\1++\1]");

you can also use a button:
btn.WhenAction = callback1(LaunchWebBrowser, "http://ultimatepp.org");

it's up to your imagination what you can do with. You may use a widget which support qtf and format your hyper-link in qtf or use LaunchWebBrowser(url) directly.

Edit: btw, i don't know why qtf hyper-link doesn't work with Label, it appear formated like a hyper-link but clicking on it doesn't open the browser.


cdabbd745f1234c2751ee1f932d1dd75

[Updated on: Wed, 16 July 2008 11:08]

Report message to a moderator

Re: adding link [message #16941 is a reply to message #16835] Tue, 22 July 2008 12:05 Go to previous messageGo to next message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Label has IgnoreMouse=true does it not?
Re: adding link [message #16945 is a reply to message #16941] Tue, 22 July 2008 14:22 Go to previous messageGo to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
Well, even with IgnoreMouse(false) it doesn't work. Seems Label doesn't receive any mouse events because also WhenAction doesn't work.

2008.rc2, Ubuntu


cdabbd745f1234c2751ee1f932d1dd75
Re: adding link [message #16951 is a reply to message #16835] Tue, 22 July 2008 18:14 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
bytefield wrote on Wed, 16 July 2008 04:58


Edit: btw, i don't know why qtf hyper-link doesn't work with Label, it appear formated like a hyper-link but clicking on it doesn't open the browser.


Yes, that is by design.

Note that Callback1<String> is required to process hyperlink click.

One of reasons why Label is completely static is that in its LabelBox variant, it would eat events intended for widgets in the box.

Mirek
Previous Topic: print screen
Next Topic: creating path
Goto Forum:
  


Current Time: Thu Mar 28 21:30:39 CET 2024

Total time taken to generate the page: 0.01379 seconds