Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

How get hyperlink?

Post Reply
Chinyaev
Posts: 38
Joined: Mon Mar 13, 2017 3:23 pm

How get hyperlink?

Post by Chinyaev »

Hello!

How get tooltips to appear over hyperlinks?
I tried the OnTooltip method, but it does not work.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How get hyperlink?

Post by salvadordf »

Hi,

According to this :
https://www.w3schools.com/jsref/prop_html_title.asp

It should be enough to add a 'title' attribute.
Chinyaev
Posts: 38
Joined: Mon Mar 13, 2017 3:23 pm

Re: How get hyperlink?

Post by Chinyaev »

I mean url when hovering with a mouse (at the bottom of the window).
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How get hyperlink?

Post by salvadordf »

Hi,

Use the TChromium.OnStatusMessage event, put a TStatusBar in your form and change its text with the "value" parameter from the event.
The MiniBrowser demo shows this kind of text messages and it has all the code you need for this.
Chinyaev
Posts: 38
Joined: Mon Mar 13, 2017 3:23 pm

Re: How get hyperlink?

Post by Chinyaev »

Thanks very much!
Post Reply