Custom tools/icons in toolbars in submenus

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

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

HQue
User
Posts: 12
Joined: Fri Mar 14, 2025 2:34 pm

Custom tools/icons in toolbars in submenus

Post by HQue »

Hello there, ,

could someone tell me what I would have to change in cParent and cRbParent in addSubMenu() and addMenuItem() in a custom tool in order to get my icon/tool displayed here:
Format - Text Editing Tools
image.png

Code: Select all

app.addSubMenu({ cName: "symbolsTR", cUser: "Alpha", cParent: "-", cRbParent: "Format", bNewRbGroup: true, nRbGroupStyle: 2 });

app.addMenuItem( {
	cName: "alpha",
	cUser: "Alpha",
	oIcon: alphaIcon,
	cTooltext: "",
        cParent: "Format",
        cRbParent: "rbar.format.properties", // add to comment tools on home ribbon
	cEnable: "event.rc = (this.selectedAnnots?.length)",
	cExec: "executeAlphaFct(this)"
});

Thanks in advance!

Niklas
You do not have the required permissions to view the files attached to this post.
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10998
Joined: Wed Jan 03, 2018 6:52 pm

Re: Custom tools/icons in toolbars in submenus

Post by Daniel - PDF-XChange »

Hello, HQue

I am unsure if this is possible, given the context sensitivity of the Format ribbons, and their lack of presence when the corresponding tools are not in use... I have asked the Dev team for details on if and how this is possible, and will let you know as soon as I have heard back from them.

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
HQue
User
Posts: 12
Joined: Fri Mar 14, 2025 2:34 pm

Re: Custom tools/icons in toolbars in submenus

Post by HQue »

That would be great, thank you!!
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10998
Joined: Wed Jan 03, 2018 6:52 pm

Re: Custom tools/icons in toolbars in submenus

Post by Daniel - PDF-XChange »

Hello, HQue

I am sorry to say that they have confirmed this. At the moment there is no way to define the dynamic "Format" tabs, as a target for JS button placement. You will need to use a different, "static" Ribbon tab to store those buttons.

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
HQue
User
Posts: 12
Joined: Fri Mar 14, 2025 2:34 pm

Re: Custom tools/icons in toolbars in submenus

Post by HQue »

Okay, that's a pitty but thanks a lot for the answer and the time for investigating!
User avatar
Jordan - PDF XChange
Site Admin
Posts: 252
Joined: Mon Jul 03, 2023 3:10 pm

Custom tools/icons in toolbars in submenus

Post by Jordan - PDF XChange »

:)
Best regards,
Jordan