How to find the exact word the user touches on a label?

Inman

Well-Known Member
Licensed User
Longtime User
I have a label in which I use RichString to display text in bold, italics and also as hyperlink (which is basically blue colored text with underline). A single label can have more than one hyperlinks. So when the user clicks or touches the label, I need to find the exact word so that I can open the corresponding link.

Is this possible?
 

Beja

Expert
Licensed User
Longtime User
Hi Inman,
I thought the click event has no parameters. you may want to use a number of transparent labels instead and stitch them together. Or maybe you can use the mouse_move and click together, but not sure 'cause I didn't use it.
 
Last edited:
Upvote 0

Inman

Well-Known Member
Licensed User
Longtime User
Thanks guys. I was going through Martin's library and it makes things so much easier to format and display HTML content.

But currently I am trying to figure out how to display hyperlinks and detect the clicks on them. Perhaps we should continue this discussion in the LalbelExtras thread. I will post there.
 
Upvote 0
Top