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


we're porting our acrobat (8/9/x/xi) plug-in unicode-compliant, can show our ui in japanese , other languages require double-byte characters.

 

i've figured out how rework of our 8-bit calls, such replacing avmenuitemnew() avmenuitemnewwithastext(), avalert() avalertwithparams(), etc.

 

but i'm stuck on tooltips our toolbar buttons.  had been calling avtoolbuttonsethelptext(), takes 8-bit char string.  there's no astext version of function, far can tell.

 

i've tried calling both avtoolbuttonsetcomputetooltipproc() , avtoolbuttonsetnotifytooltipproc(), callback functions never called.  similar callbacks registered avtoolbuttonsetcomputemarkedproc(), avtoolbuttonsetcomputeenabledproc(), , avtoolbuttonsetexecuteproc() work fine, , i'm calling avtoolbuttonset***tooltipproc functions same way, tooltip callbacks never fire (at least not under acrobat xi on windows, development environment).

 

i'm not sure whether avtoolbuttonsetcomputetooltipproc() or avtoolbuttonsetnotifytooltipproc() need do, or difference between 2 callbacks is.  also, the documentation avnotifytooltipproc says, "it returns text displayed in tooltip," avnotifytooltipproc declaration function returning void, i'm not sure doc means "it returns text."  avcomputetooltipproc callback seems more sensible, returns astext, said, can't either 1 fire.  although the doc avcomputetooltipproc bit confusing well, says it's "used mega-tooltip text toolbar button."  mean by, "mega-tooltip?"  clue "mega" tooltip somehow fundamentally different regular (non-"mega") tooltip?

 

so, need to in order set unicode tool tips on toolbar buttons?

i believe avtoolbuttonsethelptextwithastext added @ version 10.



More discussions in Acrobat SDK


adobe

Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support