Quantcast
Channel: Adobe Community : Unanswered Discussions - Acrobat
Viewing all articles
Browse latest Browse all 73766

How do I set a Unicode tool tip on an AVToolButton?

$
0
0

We're finally porting our Acrobat (8/9/X/XI) plug-in to be fully Unicode-compliant, so that we can show our UI in Japanese and other languages which require double-byte characters.

 

I've figured out how to rework most of our 8-bit calls, such as replacing AVMenuItemNew() with AVMenuItemNewWithASText(), AVAlert() with AVAlertWithParams(), etc.

 

But I'm stuck on the tooltips for our toolbar buttons.  We had been calling AVToolButtonSetHelpText(), which takes an 8-bit char string.  But there's no ASText version of this function, as far as I can tell.

 

I've tried calling both AVToolButtonSetComputeTooltipProc() and AVToolButtonSetNotifyTooltipProc(), but my callback functions never get called.  Similar callbacks registered with AVToolButtonSetComputeMarkedProc(), AVToolButtonSetComputeEnabledProc(), and AVToolButtonSetExecuteProc() work just fine, and I'm calling the AVToolButtonSet***TooltipProc functions the same way, but the tooltip callbacks never fire (at least not under Acrobat XI on Windows, which is my development environment).

 

I'm not actually sure whether AVToolButtonSetComputeTooltipProc() or AVToolButtonSetNotifyTooltipProc() is what I need to do, or exactly what the difference between the two callbacks is.  Also, the documentation for AVNotifyTooltipProc says, "It returns text that is displayed in the tooltip," but AVNotifyTooltipProc is a declaration for a function returning void, so I'm not sure what the doc means by "It returns text."  The AVComputeTooltipProc callback seems more sensible, as it returns ASText, but like I said, I can't get either one to fire.  Although the doc for AVComputeTooltipProc is a bit confusing as well, as it says it's "used to get the mega-tooltip help text for a toolbar button."  What exactly does it mean by, "mega-tooltip?"  Is that a clue that a "mega" tooltip is somehow fundamentally different than a regular (non-"mega") tooltip?

 

So, what exactly do I need to to in order to set Unicode tool tips on my toolbar buttons?


Viewing all articles
Browse latest Browse all 73766

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>