Saltar al contenido

Cambiar icono imagen Custom UI editor

publicado

Hola! amigos(as) del foro hace poco me descargué este archivo de autoría de @JSDJSD 

El problema que tengo es  intento cambiar la imagen del icono que lleva como nombre: AccessRefreshAllLists por otra de preferencia, tratando de cambiar en esta parte: imageMso="Inicioprueba"  insertando la imagen en el editor, a pesar que al momento de validar el editor Office RibbonXeditor no salta ningún error,  no realiza el cambio de la imagen.

<!-- Created with IDBE RibbonCreator 2019 (Version: 1.1003) -->
<!--                http://www.ribboncreator2019.com               -->
<!--                 http://www.ribboncreator2019.de               -->
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="OnRibbonLoad">
	<ribbon startFromScratch="false">
		<tabs>
			<tab id="tab0" label="SmartIntelligence" getVisible="GetVisible" insertBeforeMso="TabHome">
				<group id="grp0" autoScale="false" centerVertically="false" label="Smart Intelligence Tools" getVisible="GetVisible" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=">
					<button id="btn0" size="large" label="Home Apps Smart" imageMso="Inicioprueba" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled"/>
					<button id="btn1" size="large" label="Info. Smart IT" imageMso="AccessRefreshAllLists" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled"/>
					<button id="btn2" size="large" label="Politica description Privacidad" imageMso="AccessRefreshAllLists" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled"/>
				</group>
				<group id="grp1" autoScale="false" centerVertically="false" label="Aplicaciones Viáticos" getVisible="GetVisible" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=">
					<button id="btn3" size="large" label="Administrador Apps" imageMso="AccessRefreshAllLists" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled"/>
					<button id="btn4" size="large" label="Propiedad Intelectual" imageMso="AccessRefreshAllLists" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled"/>
					<button id="btn5" size="large" label="more" imageMso="AccessRefreshAllLists" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled"/>
				</group>
				<group id="grp2" autoScale="false" centerVertically="false" label="Aplicaciones para horas extras" getVisible="GetVisible" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=">
					<button id="btn6" size="large" label="Home Apps Smart" imageMso="AccessRefreshAllLists" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled"/>
					<button id="btn7" size="large" label="Notificador manual" imageMso="AccessRefreshAllLists" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled"/>
					<button id="btn8" size="large" label="IDKEY" imageMso="AccessRefreshAllLists" tag="RibbonName:=;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled"/>
				</group>
			</tab>
		</tabs>
	</ribbon>
</customUI>

Por ultimo es posible agregar un textbox en el cual se pueda cargar el usuario detectado, algo similar a: 

TextBox2 = Application.UserName

Agradezco la ayuda.

Nota: el archivo lo utilizo como ejemplo de práctica.

Saludos

J

1Captura.PNG

2Captura.PNG

Ejenplo-1 Prueba 2.xlsm

Editado el por Jose BN
Aclarar uso de archivo

Featured Replies

publicado

Es fácil amigo, en vez de dejar como imageMso    Cámbialo por image

Espero haberte ayudado,

Saludos,

Diego.

publicado
  • Autor

@DiegoLG muchas gracias! realmente era fácil cambiar la imagen.

 

Saludos,

JB

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.