How to float the JavaScript toolbar "Add-on Tools" in the Ribbon UI  SOLVED

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

User avatar
rakunavi
User
Posts: 1750
Joined: Sat Sep 11, 2021 5:04 am

How to float the JavaScript toolbar "Add-on Tools" in the Ribbon UI

Post by rakunavi »

Hello all,

I have found a way to make the JavaScript toolbar "Add-on Tools" float in Ribbon UI, and I share it for your reference.

  • figure.png
I have been able to make "Add-on Tools" float in Classic UI, but I could not make it float in Ribbon UI, and had given up for a long time. However, one day I noticed that the toolbar was floating on one of my PCs, even though I did not modify the registry in any particular way. I still don't know why it suddenly floated. However, when I had two PCs at hand, one with a floating toolbar and one without, I had no choice but to investigate the difference. I immediately checked and found that the following registry differences.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Tracker Software\PDFXEditor\3.0\Settings\CmdLayouts\Ribbon\Layouts\000000\Floating]
@="A"

[HKEY_CURRENT_USER\Software\Tracker Software\PDFXEditor\3.0\Settings\CmdLayouts\Ribbon\Layouts\000000\Floating\000000]
"t.ID"="cmdbar.addon"

[HKEY_CURRENT_USER\Software\Tracker Software\PDFXEditor\3.0\Settings\CmdLayouts\Ribbon\Layouts\000000\Tabs\TCA]
@="A"

[HKEY_CURRENT_USER\Software\Tracker Software\PDFXEditor\3.0\Settings\CmdLayouts\Ribbon\Layouts\000000\Tabs\TCA\000000]
"i.T"=dword:00000002
"t.P1"="rbar.addon"
  • Floating Add-on Tools.zip
Assuming the default settings, the following steps to apply the registry file will work.

  1. Temporarily add a new toolbar in the Customize Toolbar dialog beforehand.
  2. Load the registry file.
  3. Delete the toolbar created temporarily in Step 1.
Note that it is assumed that there is at least one *.js file with the toolbar set in the JavaScripts folder; Document-Level JavaScript alone will not result in a floating toolbar. As long as the toolbar is set in the *.js file, the Document-Level JavaScript toolbar will be floating together with the *.js file.

See the following video for details.

  • Animation.gif
Since this involves a registry change, please back up your settings before trying this. Please note that neither I nor Tracker Software is responsible for the safety of the above registry settings. If the above settings are fatal to your computer, surely this message will be forcibly removed.

All the scripts in the toolbar in the video are the work of Mathew. Not only are the scripts God-awesome, but the beautiful icon design is also a love affair.

I hope the above information will be useful to someone someday.

Best regards,
rakunavi
You do not have the required permissions to view the files attached to this post.
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: How to float the JavaScript toolbar "Add-on Tools" in the Ribbon UI  SOLVED

Post by Stefan - PDF-XChange »

Hello rakunavi,

Many thanks for sharing your findings with us!
I am sure they would be useful to someone else as well!

Kind regards,
Stefan
Loki@99
User
Posts: 558
Joined: Sat Dec 16, 2023 11:09 am

Re: How to float the JavaScript toolbar "Add-on Tools" in the Ribbon UI

Post by Loki@99 »

Hi,

It will be way more convenient to if Customize Toolbar supports drag and drop of these icons in Add-on Tools.

Can't drag and drop on a Toolbar
issue.gif

It's great that @rakunavi found this but these steps aren't user-friendly at all.

Thanks for considering this,
You do not have the required permissions to view the files attached to this post.
Major Stylus topics
- RemoveAnnotationsWithEraser T#6903
- MiniPopupMenuOnTextSelection T#6894
- AbnormalSpikes forum.pdf-xchange.com/viewtopic.php?p=179935&hilit=spikes#p179935
- ForceEraserPreview forum.pdf-xchange.com/viewtopic.php?t=42380
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11345
Joined: Wed Jan 03, 2018 6:52 pm

Re: How to float the JavaScript toolbar "Add-on Tools" in the Ribbon UI

Post by Daniel - PDF-XChange »

Hello, Loki@99

There is a reason that these are not draggable. JS buttons are re-created with each launch of the software. Therefore they need to specifically name the toolbar they are part of in their JS in order to appear anywhere else. Dragging them would not work, since it would need to be done every simple time you restart the software, and thus is not something we plan to add.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com