Hyperlink in Textbox?

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Moderator: Alex

Post Reply
iansml
Posts: 31
Joined: Thu Apr 23, 2009 1:57 pm

Hyperlink in Textbox?

Post by iansml » Thu Apr 23, 2009 5:00 pm

Is there any way to add an annotation that contains a hyperlink to external URL or document? An extension to the TextAnnotation control possibly?

Thanks.

Alex
Site Admin
Posts: 1462
Joined: Thu Jul 10, 2008 2:21 pm

Re: Hyperlink in Textbox?

Post by Alex » Thu Apr 23, 2009 5:59 pm

Hello,

What functionality do you need?

Best regards, Alexander

iansml
Posts: 31
Joined: Thu Apr 23, 2009 1:57 pm

Re: Hyperlink in Textbox?

Post by iansml » Thu Apr 23, 2009 6:26 pm

Alex wrote:Hello,

What functionality do you need?

Best regards, Alexander

Hi Alex,

I'm currently evaluating a number of 3rd party products to replace some legacy document annotation code that has been hand-crafted using GDI. One of the legacy annotations I must replace is a kind of textbox that allows you to select a URL and add a textual description. The textbox displays the description as a standard hyperlink (blue, underlined) which launches the URL when clicked.

I can't find any control that will do the job. Is there one, or is there any way I can extend an existing one (e.g. textbox/rectangle)?

Thanks,

Ian

Alex
Site Admin
Posts: 1462
Joined: Thu Jul 10, 2008 2:21 pm

Re: Hyperlink in Textbox?

Post by Alex » Mon Apr 27, 2009 1:16 pm

Hello Ian,

You can use StampAnnotation as a base for UrlAnnotation. Ability to receive notification when mouse event is fired (clicked, double clicked, etc) will be added in 2-3 weeks.

Best regards, Alexander

iansml
Posts: 31
Joined: Thu Apr 23, 2009 1:57 pm

Re: Hyperlink in Textbox?

Post by iansml » Mon Apr 27, 2009 5:58 pm

Alex,

Would you have any example code for doing this? Is there a chance of this control being a standard annotation in the future?

Thanks,

Ian

Alex
Site Admin
Posts: 1462
Joined: Thu Jul 10, 2008 2:21 pm

Re: Hyperlink in Textbox?

Post by Alex » Tue Apr 28, 2009 8:51 am

Yes, we will add UrlAnnotation to a list of standard annotations in next version of library.

Best regards, Alexander

iansml
Posts: 31
Joined: Thu Apr 23, 2009 1:57 pm

Re: Hyperlink in Textbox?

Post by iansml » Tue Apr 28, 2009 10:30 am

That's great. Thanks.

1) When will the next version be made available?
2) Do you have any example code showing how I could extend a current control as a workaround in the meantime?

Thanks again. Our evaluation of your product is going very well and I've been impressed by the turnaround of you and your team. We just a few remaining issues that I've raised on this forum that I need to resolve before we can commit to purchase.

Regards,

Ian

Alex
Site Admin
Posts: 1462
Joined: Thu Jul 10, 2008 2:21 pm

Re: Hyperlink in Textbox?

Post by Alex » Wed Apr 29, 2009 8:38 am

Hello Ian,
When will the next version be made available?
New version of VintaSoftImaging.NET Library will be released in 2-3 weeks.
Do you have any example code showing how I could extend a current control as a workaround in the meantime?
Next code creates StampAnnotation object with "URL style":

Code: Select all

StampAnnotation ann = new StampAnnotation();
ann.Text = "Url text";
FontFamily fontFamily = new FontFamily("Arial");
ann.Font = new Font(fontFamily, 15, FontStyle.Underline);
ann.Border = false;
ann.BorderColor = Color.Transparent;
ann.StampColor = Color.Blue;
ann.ZOrder = zOrder;
zOrder++;
annotationViewer1.BuildAnnotation(ann);
Mouse click event cannot be defined at the moment.

Best regards, Alexander

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests