D
Deleted member 73419
Guest
I have a ribbon with a splitButton:
When I click on either Button60, Button70 or Button80 I'd like to set the image on Button50 to match the image on the button clicked on.
So, if I clicked on Button60, callback MyButtonCallbackOnAction201 is called and this should set the image on Button50, but the question is how? How do you reference Button50's image from a callback which has run from Button60?
If you can reference another control, it would allow you to do more than just set images as you could disable / enable buttons for example
Thanks
Code:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="OnRibbonLoad" loadImage="LoadImages">
<ribbon startFromScratch="false">
<tabs>
<tab id="elcdb" label="EDB">
<group id="elcdb" label="EDB">
<splitButton id="MySplitButton2" size="large">
<button id="Button50" label="Large Button with Menu" getImage="getimage1" onAction="MyButtonCallbackOnAction200"/>
<menu id="Menu20" itemSize="normal">
<button id="Button60" label="First" getImage="getimage2" onAction="MyButtonCallbackOnAction201"/>
<button id="Button70" label="Second" getImage="getimage3" onAction="MyButtonCallbackOnAction202"/>
<button id="Button80" label="Third" getImage="getimage4" onAction="MyButtonCallbackOnAction203"/>
</menu>
</splitButton>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
When I click on either Button60, Button70 or Button80 I'd like to set the image on Button50 to match the image on the button clicked on.
So, if I clicked on Button60, callback MyButtonCallbackOnAction201 is called and this should set the image on Button50, but the question is how? How do you reference Button50's image from a callback which has run from Button60?
If you can reference another control, it would allow you to do more than just set images as you could disable / enable buttons for example
Thanks