• Post Reply Bookmark Topic Watch Topic
  • New Topic

a link (hypertext) on canvas...

 
Kruger Brent
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to have a word of a sentence drawn on canvas, to be hypertext(link)? If yes, how to differentiate the hypertext word from other words when mouse is moved over?
KB
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would have to add this functionality yourself... you would need to add a MouseListener to the canvas, and get MouseEvents that were over the co-ordinates of the link that you have painted on the canvas...

HTH,
-Nate
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!