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

AVToolButtonSetComputeVisibleProc sets the enabled state of the button

Community Beginner ,
Sep 24, 2018 Sep 24, 2018

Copy link to clipboard

Copied

I have an add-in that adds a toolbar to acrobat. This toolbar contains 3 buttons. Based on the active document, some of these buttons should be visible, and others should not be.

When I add the button to the toolbar I am using the AVToolButtonSetCompteVisibleProc function to set my visible callback. In a very simple example I have set my callback to simply return false. When debugging the code, I can see that this callback is called, however the effect is that the button is disabled, not hidden.

The version of acrobat is Acrobat Pro DC Version 2018.011.20063

TOPICS
Acrobat SDK and JavaScript

Views

373

Translate

Translate

Report

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
Adobe Employee ,
Sep 25, 2018 Sep 25, 2018

Copy link to clipboard

Copied

LATEST

Correct.

As of Acrobat X, when we went to the more modern toolbars, we dropped the whole concept of hidden buttons and instead just enable/disable them.

Votes

Translate

Translate

Report

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