Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 04-30-2021, 07:58 PM
Guessed's Avatar
Guessed Guessed is online now RibbonX Editor - change Icon for custom AutoText Gallery Windows 10 RibbonX Editor - change Icon for custom AutoText Gallery Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
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

I had a play around with the file and it appears that you can apply a built-in image (ie imageMso) but not a custom image to a gallery that uses an idMso. The best I could come up with was to create a menu and put the gallery inside that. The menu shows your custom image but the two galleries don't. Interestingly, this doesn't stop the customUI code from validating so I would consider this a MS bug.
Code:
<gallery idMso="CustomAutoTextGallery" label="Lunge64" size="large" image="Lunge128" />
<menu id="M1" label="Lunge" size="large" image="Lunge64">
    <gallery idMso="CustomAutoTextGallery" label="Lunge" image="Lunge64" />                
</menu>
Although this gives you your custom icon on the ribbon, it does require a second click to show the building blocks.
The size of the image you put into the customUI was WAY excessive - it really shouldn't be any larger than 64 pixels by 64 pixels. I saved yours down to that size which brought the file size down to an acceptable level. I also tried converting your Word 2007 CustomUI to Word 2010+ to see if that made a difference (it didn't).



FWIW, the only way I can see to create a one step gallery with your custom image is to use a bunch of vba code to either create a dynamic gallery or to hand code (in the CustomUI xml) all the building blocks into a gallery using the id attribute. Neither of these options are simple and require VBA code to execute them so I wouldn't recommend those alternatives.
Attached Images
File Type: png Lunge64.png (11.1 KB, 10 views)
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Making AutoText entries available to the Outlook email editor Jennifer Murphy Word 8 01-03-2017 03:51 PM
RibbonX Editor - change Icon for custom AutoText Gallery Word 2013: My custom table styles disappeared from Gallery sinz54 Word Tables 1 03-13-2015 05:02 PM
RibbonX Editor - change Icon for custom AutoText Gallery Custom UI Editor - 2013 ptmuldoon Word 3 02-04-2015 06:55 AM
RibbonX Editor - change Icon for custom AutoText Gallery Custom Header Gallery Quick Part Displays > in 2007 but not 2010 sleake Word 4 10-23-2013 07:10 AM
RibbonX Editor - change Icon for custom AutoText Gallery Need help with custom UI image gallery ribbon pfiggy PowerPoint 3 04-28-2013 07:13 AM

Other Forums: Access Forums

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


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