Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

show a popup/tooltip when hovering over a text annotation (c/c++ sdk)

New Here ,
Dec 20, 2022 Dec 20, 2022

A few questions today; looming deadlines with a list of things I haven't had success working out of docs, samples and experimentation...

 

I need to show a popup/tooltip when a user hovers over my annotation. the text in the annotation is a tick mark; a special character to denote something. the popyp shouldexplain what it denotes.

 

I have a AVAnnotHandlerCursorEnterProc and AVAnnotHandlerCursorExitProc wired up and working and the the text I need is in a string in the CosOnj that I retrieve successfully. I just need to know how to display it.

 

TOPICS
Acrobat SDK and JavaScript , Windows
577
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 20, 2022 Dec 20, 2022

I'd be inclined to implement the pop-up display simply using platform methods - write to the screen. When the info is no longer needed, cause a screen refresh by invalidating the affected area. If you can do the display by creating a floating window, all the redisplay should be taken care of when you remove it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2022 Dec 21, 2022
LATEST

I agree with Test Screen, the simplest solution is to just draw on the screen.  I've used this method many times. Put the drawing code in screen redraw event to create a stable display, or  not if it's just a quick popup. 

Using actual windows adds more complexity than is necessary. 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines