How to create information (tooltip) window in PDF

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
rsb
Experienced Solver
Experienced Solver
Posts: 82
Joined: Fri May 29, 2015 7:26 pm

How to create information (tooltip) window in PDF

Postby rsb » Tue May 31, 2016 7:53 pm

Hello,

Is there a way to create something like a tooltip window in a PDF file using the wxPdfDocument class. A PDF file we have here
created by someone else has the ability to display an information (tooltip) window when you click inside the extent of an object.
I've attached the PDF file as well as an image of it which displays an electronic schematic. When you select anywhere inside one
of the component (rectangle) objects, a tooltip like window pops up and display information about the selected component.
I looked through the tutorial files but didn't see anything that looked helpful.

Thanks for any help you can provide.
Robert
Attachments
SchPdf.PNG
SchPdf.PNG (26.66 KiB) Viewed 411 times
Sch.7z
(111.5 KiB) Downloaded 11 times

utelle
Moderator
Moderator
Posts: 737
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: How to create information (tooltip) window in PDF

Postby utelle » Wed Jun 01, 2016 10:50 am

rsb wrote:Is there a way to create something like a tooltip window in a PDF file using the wxPdfDocument class?

Yes, you can use method Annotate of class wxPdfDocument, to add simple text annotations ...

rsb wrote:A PDF file we have here created by someone else has the ability to display an information (tooltip) window when you click inside the extent of an object.

... however, this feature currently lacks options to influence the visual appearance. So the result may not be what you would like to have. The annotation feature of wxPdfDocument could be enhanced, though.

rsb wrote:I've attached the PDF file as well as an image of it which displays an electronic schematic. When you select anywhere inside one
of the component (rectangle) objects, a tooltip like window pops up and display information about the selected component.
I looked through the tutorial files but didn't see anything that looked helpful.

From the PDF file I saw that clicking on the bookmarks does often change the zoom factor and zoom window. This isn't currently supported by wxPdfDocument either. Again, the bookmark feature of wxPdfDocument could be enhanced to support this, too.

Regards,

Ulrich


Return to “wxCode”

Who is online

Users browsing this forum: Google [Bot] and 1 guest