Skip to main content
M.Hasanin
Inspiring
December 3, 2017
Answered

About Creating Show / Hide Control Panel Interface

  • December 3, 2017
  • 2 replies
  • 534 views

Hi Great Supporter.

My Question is about, i have more than 20 buttons in my form to control specific tasks in the form, so my question is can i make control panel to be shown or hide outside of the area of the form, i succeeded in showing or hiding the controls inside the form, but what i mean something like (floating panel) outside of PDF, in the past days when i was writing lingo scripting language (Macromedia Director Scripting Language) there was a technology called (MIAW) it refer to (Movie in a Window) that is floating window that can call functions to the main movie, i was wonder if something like that is available inside acrobat pro dc via JavaScript so i will give more space to data entries people !, Thanks in Advance

This topic has been closed for replies.
Correct answer Thom Parker

You actually can have a floating window with buttons.  The app.addToolButton() function adds buttons to a floating toolbar. However I wouldn't put more than a few on it. Probably the best solution is to use the button to display a popup menu of options, using the app.popUpMenu() function.

You can read more Here:

Alerts, Popups, and Other Devices for Interacting with the User

2 replies

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
December 3, 2017

You actually can have a floating window with buttons.  The app.addToolButton() function adds buttons to a floating toolbar. However I wouldn't put more than a few on it. Probably the best solution is to use the button to display a popup menu of options, using the app.popUpMenu() function.

You can read more Here:

Alerts, Popups, and Other Devices for Interacting with the User

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Inspiring
December 3, 2017

Acrobat/Reader JavaScript is "sandboxed" and has very few connections to the OS of the system on which it operates. This has been done for security issues when an application can pragmatically has communication to or from the OS and what can be accessed and transferred to or from an application.