Setting ToolBar button label text
does know why code isn't setting label next button? create button image , text label on right side of button. button displaying image, label isn't showing up.
accb1 asbool accb2 plugininit ()
{
avtoolbar toolbar = avappgettoolbar ();
avtoolbutton toolbutton, toolsseparator;
// set our toolbutton
toolsseparator = avtoolbargetbuttonbyname (toolbar, asatomfromstring("endtoolsgroup"));
toolbutton = avtoolbuttonnew (asatomfromstring("adbe:lfacroplugin"), getbuttonicon(), true, false);
// toolbutton internal default.
//avtoolbuttonsetexternal (toolbutton, toolbutton_external);
avtoolbaraddbutton(toolbar, toolbutton, true, toolsseparator);
avtoolbuttonsetexecuteproc (toolbutton,
ascallbackcreateproto(avexecuteproc, &lfacroplugincommand), null);
avtoolbuttonsetcomputeenabledproc (toolbutton,
ascallbackcreateproto(avcomputeenabledproc, &lfacropluginisenabled), null);
avtoolbuttonsethelptext (toolbutton, "save");
//create label save button
astext tmptext = astextnew();
astextsetpdtext(tmptext, "save");
asconsttext labeltext = tmptext;
avtoolbuttonsetlabeltext(toolbutton, labeltext, kavbuttonpriorityonnormal);
return true;
}
what version of acrobat?
More discussions in Acrobat SDK
adobe
Comments
Post a Comment