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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support