Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-28-2025, 05:32 PM
Guessed's Avatar
Guessed Guessed is offline Ribbon Customization - Gallery vs ComboBox - built-in control split button - highlighting control Windows 10 Ribbon Customization - Gallery vs ComboBox - built-in control split button - highlighting control Office 2016
Expert
Ribbon Customization - Gallery vs ComboBox - built-in control split button - highlighting control
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,181
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default Ribbon Customization - Gallery vs ComboBox - built-in control split button - highlighting control

I have a custom Word Ribbon using a built-in control that doesn't behave the same way as the built-in control. I'm hoping someone might have an idea on how to save an extra click.



So the built-in Ribbon button for Highlighting text behaves like a Combobox. If you click on the left, it highlights the text, if you click on the right arrow, it expands to show various colours that can be selected. Also I can double-click the highlighter to have it remain on so I can drag multiple areas on the page and have highlights applied. Simples!

I can use the GUI to add the button to another ribbon. Happily this works normally and can be exported to show up as:
Code:
<mso:gallery idQ="mso:TextHighlightColorPicker" showInRibbon="false" visible="true"/>
However, the GUI change only works on my machine and doesn't distribute with a template, hence the need for hand-crafted ribbon code.

So, when I create a custom ribbon and add that 'same' code along with the namespace, the Gallery behaviour starts to bite. This means that clicking on the left side expands the colour picker thus requiring another mouse move and a second click that the original control didn't require. Double-click doesn't work either. Bugger!

I've tried variations on my ribbon without success. That code at its simplest is:
Code:
<gallery idMso="TextHighlightColorPicker" showLabel="false" />
Does anyone have a solution to make the Custom ribbon version of the built-in control behave the same way as the GUI-edited ribbon behaves?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia

Last edited by Guessed; 10-28-2025 at 08:12 PM.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoTextList field or Building Blocks Gallery Content Control WordExperto Word VBA 4 02-02-2024 06:24 AM
How to reset building block gallery content control ericliu24 Word VBA 6 04-15-2022 06:16 AM
Reference a Building block gallery control from another Field and insert text using If logic Flynny Word VBA 3 07-30-2018 08:34 PM
Gallery Content control and protect document DarrenOakey Word 2 08-13-2015 04:56 AM
How-to: Add a quickpart, field or Building Block Gallery Content Control based on a UserForm HighSierra Word VBA 0 05-06-2015 08:20 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:22 PM.


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