Sunday, 15 February 2015

vba - SplitButton GetImage Callback Not Working -


I have a custom ribbon in the ViVio that is displayed correctly, except when I click to expand Split Button When I expand the split button, it calls GetImage callback for my ribbon, and loads the BMP file using the LoadPicture, but does not actually display in Visio. Next time I expand the split button, everything is fine.

Do you have to do something in the callback to display the ribbon correctly when using SplitBoot?

We currently use a class that implements IRibbonExtensibility with callback for GetImage and OnAction, and they work fine for normal buttons, but this behavior can only be used with split button get.

This is what I first click on the drop down:

Auto pipe button is top level and split button must have two buttons

This is not clear What code is used for custom ribbon UI?

GetImage callback should contain the following signature:

  C #: IPTuDescript GetImage (IRibbonControl control) VBA: Sub GetImage (Control as IRibbonControl, Bayreaf Image) C + +: HRESULT GetImage (IRIBBON control [PControl, [out, retval] IPCartDice P ** ppdispImage) Visual Basic: Function: GetImage (control in the form of the control of the ibibon control) IPCUT Disp  

Ensure that you return the IPITQDscript example which you Indicates Od went the image. See for sample code.


No comments:

Post a Comment