Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-02-2025, 02:50 AM
Ddadoo57 Ddadoo57 is offline Ckeckbox in a custom ribbon menu? Windows 11 Ckeckbox in a custom ribbon menu? Office 2021
Advanced Beginner
Ckeckbox in a custom ribbon menu?
 
Join Date: Feb 2023
Posts: 90
Ddadoo57 is on a distinguished road
Default Ckeckbox in a custom ribbon menu?

Hello,
Is it possible to put a ckeckbox in a custom ribbon menu? It's accepted in the xml file but not in word. I can only see the label, not the checkbox itself.
Reply With Quote
  #2  
Old 03-02-2025, 03:44 AM
Italophile Italophile is offline Ckeckbox in a custom ribbon menu? Windows 11 Ckeckbox in a custom ribbon menu? Office 2021
Expert
 
Join Date: Mar 2022
Posts: 554
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Quote:
Originally Posted by Ddadoo57 View Post
It's accepted in the xml file but not in word. I can only see the label, not the checkbox itself.
Have you checked the option to show interface errors? We can't help you debug your code if we can't see it.

Reply With Quote
  #3  
Old 03-02-2025, 09:43 AM
Ddadoo57 Ddadoo57 is offline Ckeckbox in a custom ribbon menu? Windows 11 Ckeckbox in a custom ribbon menu? Office 2021
Advanced Beginner
Ckeckbox in a custom ribbon menu?
 
Join Date: Feb 2023
Posts: 90
Ddadoo57 is on a distinguished road
Default

Thanks for your feedback Italophile!

I'll answer my question and close the thread:

- In fact in ribbon, a <checkbox.../> placed in a <box.../> element of a <group.../> element, does not have the same appearance as a <checkbox.../> placed in a <menu.../> element of a <box.../> element (see image, this is just an example
). The former has a standard appearance, the latter is simply a checkmark.

- Management is the same, with the same getPressed, onAction and getLabel callbacks. However, as the appearance is different, if the box is checked, a check mark will indicate this (without the contours of a small square), and if not, only the label will appear.
Attached Images
File Type: gif Capture d’écran 2025-03-02 171926.gif (66.8 KB, 24 views)
Reply With Quote
  #4  
Old 03-09-2025, 03:11 PM
Charles Kenyon Charles Kenyon is offline Ckeckbox in a custom ribbon menu? Windows 11 Ckeckbox in a custom ribbon menu? Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,536
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Are you coding this using XML? If so, see Ribbon Custom Icons as well as Customize the Office Ribbon (It doesn't take rocket science) and Dynamic Ribbon Menu by Greg Maxey.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Ribbon modification leurne Word VBA 8 08-11-2023 06:26 AM
Hiding Save As, Export, Share in the ribbon under File menu anderjoa Word VBA 0 11-01-2016 06:23 AM
VBA-elements missing from Word ribbon menu mojopin Word VBA 2 11-10-2015 07:33 AM
Ckeckbox in a custom ribbon menu? How to make menu bar (Ribbon) visible? Word 2013 mysterywriter Word 6 08-25-2015 03:29 PM
Ckeckbox in a custom ribbon menu? Customize Ribbon Menu Vinci22 Office 2 03-16-2013 12:15 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft