These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Link Tooltip

EricFan
Registered: Sep 1 2008
Posts: 13
Answered

Hi Masters.

I can add a hyperlink by using Doc.Addlink method and add an underscore under the link text by using AddAnnot.

I also want to make the link show tooltip when the text is pointed by mouse. I read through the reference and can't get any idea about how to do it.

Can anybody please give me some suggestion?

Thanks

Eric

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Consider using a button instead, which will allow you to specify a tooltip text string.

Note that both a link annotation and a button can have a line style of underline, so you don't need to add the other separate line annotation to provide an underscore.

A button can have the same action (Mouse Up) as a link annotation.

George
EricFan
Registered: Sep 1 2008
Posts: 13
Thanks, George.

Is Field object the right one I need dig in? It seems has some methods with "button" operation.

Eric
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Yes, a button form field (doc.addField()). The properties you'd set are borderStyle for the underscore and userName for the tooltip text. Also fillColor (set to color.Transparent), rect (to specify location and size), and setAction() to specify the Mouse Up action.

George
EricFan
Registered: Sep 1 2008
Posts: 13
Hi George.

You are the man. I follow your steps and the result is perfect. Thank you very much.

Eric