Is there any way to display a linked text?
-
I'm using the graphics drawstring function to display a whole page of text. Can can I make some of the text linkable?
-
I'm using the graphics drawstring function to display a whole page of text. Can can I make some of the text linkable?
I think you'd have to draw the "blue" text yourself, handle the mousemove event to change the cursor and handle the mousedown / mouseup / click event and decide where the mouse was and if the link is to be activated.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
-
I'm using the graphics drawstring function to display a whole page of text. Can can I make some of the text linkable?
Have you tried using
System.Windows.Forms.LinkLabel
class? Graham. -
Have you tried using
System.Windows.Forms.LinkLabel
class? Graham.can it handle both painted text and link label at the same time? I tried using both painted text and label (not link label) and the painted text were not displayed. So I assumed it would have the same problem?!!!?
-
can it handle both painted text and link label at the same time? I tried using both painted text and label (not link label) and the painted text were not displayed. So I assumed it would have the same problem?!!!?
Yes, the control handles the user interaction of the hyperlink for you and renders the text and link both at the same time. It will even change the color of the hyperlink when visited (akin to IE/Firefox and other browsers). Just locate the control as the position you require using
.Location
-
Yes, the control handles the user interaction of the hyperlink for you and renders the text and link both at the same time. It will even change the color of the hyperlink when visited (akin to IE/Firefox and other browsers). Just locate the control as the position you require using
.Location
It seems working now. Thanks a lot.