The following table lists all of the callbacks, along with their procedure signatures for C++, VBA, C#, and Visual Basic.
| Control | Callback Name | Signatures |
|---|
(several controls) | getDescription | C#: string GetDescription(IRibbonControl control) VBA: Sub GetDescription(control As IRibbonControl, ByRef description) C++: HRESULT GetDescription([in] IRibbonControl *pControl, [out, retval] BSTR *pbstr Description) Visual Basic: Function GetDescription(control As IRibbonControl) As String |
(several controls) | getEnabled | C#: bool GetEnabled(IRibbonControl control) VBA: Sub GetEnabled(control As IRibbonControl, ByRef enabled) C++: HRESULT GetEnabled([in] IRibbonControl *pControl, [out, retval] VARIANT_BOOL *pvarfEnabled) Visual Basic: Function GetEnabled(control as IRibbonControl) As Boolean |
(several controls) | getImage | C#: IPictureDisp GetImage(IRibbonControl control) VBA: Sub GetImage(control As IRibbonControl, ByRef image) C++: HRESULT GetImage([in] IRibbonControl *pControl, [out, retval] IPictureDisp ** ppdispImage) Visual Basic: Function GetImage(control as IRibbonControl) as IPictureDisp |
(several controls) | getImageMso | C#: string GetImageMso(IRibbonControl control) VBA: Sub GetImageMso(control As IRibbonControl, ByRef imageMso) C++: HRESULT GetImageMso([in] IRibbonControl *pControl, [out, retval] BSTR *pbstrImageMso) Visual Basic: Function GetImageMso(control as IRibbonControl) as String |
(several controls) | getLabel | C#: string GetLabel(IRibbonControl control) VBA: Sub GetLabel(control As IRibbonControl, ByRef label) C++: HRESULT GetLabel([in] IRibbonControl *pControl, [out, retval] BSTR *pbstrLabel) Visual Basic: Function GetLabel(control As IRibbonControl) As String |
(several controls) | getKeytip | C#: string GetKeytip(IRibbonControl control) VBA: Sub GetKeytip (control As IRibbonControl, ByRef label) C++: HRESULT GetKeytip ([in] IRibbonControl *pControl, [out, retval] BSTR *pbstrKeytip) Visual Basic: Function GetKeytip (control As IRibbonControl) As String |
(several controls) | getSize | C#: RibbonControlSize GetSize(IRibbonControl control) VBA: sub GetSize(control As IRibbonControl, ByRef size) C++: HRESULT GetSize([in] IRibbonControl *pControl, [out, retval] RibbonControlSize *pintSize) Visual Basic: Function GetSize(control As IRibbonControl) As RibbonControlSize |
(several controls) | getScreentip | C#: string GetScreentip(IRibbonControl control) VBA: Sub GetScreentip(control As IRibbonControl, ByRef screentip) C++: HRESULT GetScreentip([in] IRibbonControl *pControl, [out, retval] BSTR *pbstrScreentip) Visual Basic: Function GetScreentip(control As IRibbonControl) As String |
(several controls) | getSupertip | C#: string GetSupertip(IRibbonControl control) VBA: Sub GetSupertip(control As IRibbonControl, ByRef screentip) C++: HRESULT GetSupertip([in] IRibbonControl *pControl, [out, retval] BSTR *pbstrScreentip) Visual Basic: Function GetSupertip(control As IRibbonControl) As String |
(several controls) | getVisible | C#: bool GetVisible(IRibbonControl control) VBA: Sub GetVisible(control As IRibbonControl, ByRef visible) C++: HRESULT GetVisible([in] IRibbonControl *pControl, [out, retval] VARIANT_BOOL *pvarfVisible) Visual Basic: Function GetVisible(control As IRibbonControl) As Boolean |
button | getShowImage | C#: bool GetShowImage(IRibbonControl control) VBA: Sub GetShowImage (control As IRibbonControl, ByRef showImage) C++: HRESULT GetShowImage ([in] IRibbonControl *pControl, [out, retval] VARIANT_BOOL *pvarShowImage) Visual Basic: Function GetShowImage (control As IRibbonControl) As Boolean |
button | getShowLabel | C#: bool GetShowLabel(IRibbonControl control) VBA: Sub GetShowLabel (control As IRibbonControl, ByRef showLabel) C++: HRESULT GetShowLabel ([in] IRibbonControl *pControl, [out, retval] VARIANT_BOOL *pvarShowLabel) Visual Basic: Function GetShowLabel (control As IRibbonControl) As Boolean |
button | onAction – repurposed | C#: void OnAction(IRibbonControl control, ref bool CancelDefault) VBA: Sub OnAction(control As IRibbonControl, byRef CancelDefault) C++: HRESULT OnAction([in] IRibbonControl *pControl, [in,out] VARIANT _BOOL *fCancelDefault) Visual Basic: Sub OnAction(control As IRibbonControl, byRef CancelDefault) |
button | onAction | C#: void OnAction(IRibbonControl control) VBA: Sub OnAction(control As IRibbonControl) C++: HRESULT OnAction([in] IRibbonControl *pControl) Visual Basic: Sub OnAction(control As IRibbonControl) |
checkBox | getPressed | C#: bool GetPressed(IRibbonControl control) VBA: Sub GetPressed(control As IRibbonControl, ByRef returnValue) C++: HRESULT GetPressed([in] IRibbonControl *pControl, [out, retval] VARIANT_BOOL *pvarfPressed) Visual Basic: Function GetPressed(control As IRibbonControl) As Boolean |
checkBox | onAction | C#: void OnAction(IRibbonControl control, bool pressed) VBA: Sub OnAction(control As IRibbonControl, pressed As Boolean) C++: HRESULT OnAction([in] IRibbonControl *pControl, [in] VARIANT_BOOL *pvarfPressed) Visual Basic: Sub OnAction(control As IRibbonControl, pressed As Boolean) |
comboBox | getItemCount | C#: int GetItemCount(IRibbonControl control) VBA: Sub GetItemCount(control As IRibbonControl, ByRef count) C++: HRESULT GetItemCount([in] IRibbonControl *pControl, [out, retval] long *count) Visual Basic: Function GetItemCount(control As IRibbonControl) As Integer |
comboBox | getItemID | C#: string GetItemID(IRibbonControl control, int index) VBA: Sub GetItemID(control As IRibbonControl, index As Integer, ByRef id) C++: HRESULT GetItemID([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] BSTR *pbstrID) Visual Basic: Function GetItemID(control As IRibbonControl, index As Integer) As String |
comboBox | getItemImage | C#: IPictureDisp GetItemImage(IRibbonControl control, int index) VBA: Sub GetItemImage(control As IRibbonControl, index As Integer, ByRef image) C++: HRESULT GetItemImage([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] IPictureDisp **ppdispImage) Visual Basic: Function GetItemImage(control As IRibbonControl, index As Integer) As IPictureDisp |
comboBox | getItemLabel | C#: string GetItemLabel(IRibbonControl control, int index) VBA: Sub GetItemLabel(control As IRibbonControl, index As Integer, ByRef label) C++: HRESULT GetItemLabel([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] BSTR *pbstrLabel) Visual Basic: Function GetItemLabel(control As IRibbonControl, index As Integer) As String |
comboBox | getItemScreenTip | C#: string GetItemScreenTip(IRibbonControl control, int index) VBA: Sub GetItemScreenTip(control As IRibbonControl, index As Integer, ByRef screentip) C++: HRESULT GetItemScreentip([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] BSTR *pbstrScreentip) Visual Basic: Function GetItemScreentip(control As IRibbonControl, index As Integer) As String |
comboBox | getItemSuperTip | C#: string GetItemSuperTip(IRibbonControl control, int index) VBA: Sub GetItemSuperTip (control As IRibbonControl, index As Integer, ByRef supertip) C++: HRESULT GetItemSuperTip ([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] BSTR *pbstrScreentip) Visual Basic: Function GetItemSuperTip (control As IRibbonControl, index As Integer) As String |
comboBox | getText | C#: string GetText(IRibbonControl control) VBA: Sub GetText(control As IRibbonControl, ByRef text) C++: HRESULT GetText([in] IRibbonControl *pControl, [out, reval] BSTR *pbstrText) Visual Basic: Function GetText(control As IRibbonControl) As String |
comboBox | onChange | C#: void OnChange(IRibbonControl control, string text) VBA: Sub OnChange(control As IRibbonControl, text As String) C++: HRESULT OnChange([in] IRibbonControl *pControl, [in] BSTR *pbstrText) Visual Basic: Sub OnChange(control As IRibbonControl, text As String) |
customUI | loadImage | C#: IPictureDisp LoadImage(string image_id) VBA: Sub LoadImage(imageId As string, ByRef image) C++: HRESULT LoadImage([in] BSTR *pbstrImageId, [out, retval] IPictureDisp ** ppdispImage) Visual Basic: Function LoadImage(imageId As String) As IPictureDisp |
customUI | onLoad | C#: void OnLoad(IRibbonUI ribbon) VBA: Sub OnLoad(ribbon As IRibbonUI) C++: HRESULT OnLoad([in] IRibbonUI *pRibbon) Visual Basic: Function OnLoad(ribbon As IRibbonUI) |
dropDown | getItemCount | C#: int GetItemCount(IRibbonControl control) VBA: Sub GetItemCount(control As IRibbonControl, ByRef count) C++: HRESULT GetItemCount([in] IRibbonControl *pControl, [out, retval] long *count) Visual Basic: Function GetItemCount(control As IRibbonControl) As Integer |
dropDown | getItemID | C#: string GetItemID(IRibbonControl control, int index) VBA: Sub GetItemID(control As IRibbonControl, index As Integer, ByRef id) C++: HRESULT GetItemID([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] BSTR *pbstrID) Visual Basic: Function GetItemID(control As IRibbonControl, index As Integer) As String |
dropDown | getItemImage | C#: IPictureDisp GetItemImage(IRibbonControl control, int index) VBA: Sub GetItemImage(control As IRibbonControl, index As Integer, ByRef image) C++: HRESULT GetItemImage([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] IPictureDisp **ppdispImage) Visual Basic: Function GetItemImage(control As IRibbonControl, index As Integer) As IPictureDisp |
dropDown | getItemLabel | C#: string GetItemLabel(IRibbonControl control, int index) VBA: Sub GetItemLabel(control As IRibbonControl, index As Integer, ByRef label) C++: HRESULT GetItemLabel([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] BSTR *pbstrLabel) Visual Basic: Function GetItemLabel(control As IRibbonControl, index As Integer) As String |
dropDown | getItemScreenTip | C#: string GetItemScreenTip(IRibbonControl control, int index) VBA: Sub GetItemScreenTip(control As IRibbonControl, index As Integer, ByRef screenTip) C++: HRESULT GetItemScreentip([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] BSTR *pbstrScreentip) Visual Basic: Function GetItemScreentip(control As IRibbonControl, index As Integer) As String |
dropDown | getItemSuperTip | C#: string GetItemSuperTip(IRibbonControl control, int index) VBA: Sub GetItemSuperTip (control As IRibbonControl, index As Integer, ByRef superTip) C++: HRESULT GetItemSuperTip ([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] BSTR *pbstrSupertip) Visual Basic: Function GetItemSuperTip (control As IRibbonControl, index As Integer) As String |
dropDown | getSelectedItemID | C#: string GetSelectedItemID(IRibbonControl control) VBA: Sub GetSelectedItemID(control As IRibbonControl, ByRef index) C++: HRESULT GetSelectedItemID([in] IRibbonControl *pControl, [out, retval] LONG *pcItemIndex) Visual Basic: Function GetSelectedItemID(control As IRibbonControl) As Integer |
dropDown | getSelectedItemIndex | C#: int GetSelectedItemIndex(IRibbonControl control) VBA: Sub GetSelectedItemIndex(control As IRibbonControl, ByRef index) C++: HRESULT GetSelectedItemIndex([in] IRibbonControl *pControl, [out, retval] LONG *pcItemIndex) Visual Basic: Function GetSelectedItemIndex(control As IRibbonControl) As Integer |
dropDown | onAction | C#: void OnAction(IRibbonControl control, string selectedId, int selectedIndex) VBA: Sub OnAction(control As IRibbonControl, selectedId As String, selectedIndex As Integer) C++: HRESULT OnAction([in] IRibbonControl *pControl, [in] BSTR *selectedId, [in] LONG cSelectedIndex) Visual Basic: Sub OnAction(control As IRibbonControl, selectedId As String, selectedIndex As Integer) |
dynamicMenu | getContent | C#: string GetContent(IRibbonControl control) VBA: Sub GetContent(control As IRibbonControl, ByRef content) C++: HRESULT GetContent([in] IRibbonControl *pControl, [out, retval] BSTR *pbstrContent) Visual Basic: Function GetContent(control As IRibbonControl) As String |
editBox | getText | C#: string GetText(IRibbonControl control) VBA: Sub GetText(control As IRibbonControl, ByRef text) C++: HRESULT GetText([in] IRibbonControl *pControl, [out, retval] BSTR *pbstrText) Visual Basic: Function GetText(control As IRibbonControl) As String |
editBox | onChange | C#: void OnChange(IRibbonControl control, string text) VBA: Sub OnChange(control As IRibbonControl, text As String) C++: HRESULT OnChange([in] IRibbonControl *pControl, [in] BSTR *pbstrText) Visual Basic: Sub OnChange(control As IRibbonControl, text As String) |
gallery | getItemCount | C#: int GetItemCount(IRibbonControl control) VBA: Sub GetItemCount(control As IRibbonControl, ByRef count) C++: HRESULT GetItemCount([in] IRibbonControl *pControl, [out, retval] long *count) Visual Basic: Function GetItemCount(control As IRibbonControl) As Integer |
gallery | getItemHeight | C#: int getItemHeight(IRibbonControl control) VBA: Sub getItemHeight(control As IRibbonControl, ByRef height) C++: HRESULT getItemHeight([in] IRibbonControl *pControl, [out, retval] LONG *height) Visual Basic: Function getItemHeight(control As IRibbonControl) As Integer |
gallery | getItemID | C#: string GetItemID(IRibbonControl control, int index) VBA: Sub GetItemID(control As IRibbonControl, index As Integer, ByRef id) C++: HRESULT GetItemID([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] BSTR *pbstrID) Visual Basic: Function GetItemID(control As IRibbonControl, index As Integer) As String |
gallery | getItemImage | C#: IPictureDisp GetItemImage(IRibbonControl control, int index) VBA: Sub GetItemImage(control As IRibbonControl, index As Integer, ByRef image) C++: HRESULT GetItemImage([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] IPictureDisp **ppdispImage) Visual Basic: Function GetItemImage(control As IRibbonControl, index As Integer) As IPictureDisp |
gallery | getItemLabel | C#: string GetItemLabel(IRibbonControl control, int index) VBA: Sub GetItemLabel(control As IRibbonControl, index As Integer, ByRef label) C++: HRESULT GetItemLabel([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] BSTR *pbstrLabel) Visual Basic: Function GetItemLabel(control As IRibbonControl, index As Integer) As String |
gallery | getItemScreenTip | C#: string GetItemScreenTip(IRibbonControl control, int index) VBA: Sub GetItemScreenTip(control As IRibbonControl, index as Integer, ByRef screen) C++: HRESULT GetItemScreentip([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] BSTR *pbstrScreentip) Visual Basic: Function GetItemScreentip(control As IRibbonControl, index As Integer) As String |
gallery | getItemSuperTip | C#: string GetItemSuperTip(IRibbonControl control, int index) VBA: Sub GetItemSuperTip (control As IRibbonControl, index as Integer, ByRef screen) C++: HRESULT GetItemSuperTip ([in] IRibbonControl *pControl, [in] long cIndex, [out, retval] BSTR *pbstrSupertip) Visual Basic: Function GetItemSuperTip (control As IRibbonControl, index As Integer) As String |
gallery | getItemWidth | C#: int getItemWidth(IRibbonControl control) VBA: Sub getItemWidth(control As IRibbonControl, ByRef width) C++: HRESULT getItemWidth([in] IRibbonControl *pControl, [out, retval] LONG *width) Visual Basic: Function getItemWidth(control As IRibbonControl) As Integer |
gallery | getSelectedItemID | C#: int GetSelectedItemID(IRibbonControl control) VBA: Sub GetSelectedItemID(control As IRibbonControl, ByRef index) C++: HRESULT GetSelectedItemID([in] IRibbonControl *pControl, [out, retval] LONG *pcItemIndex) Visual Basic: Function GetSelectedItemID(control As IRibbonControl) As Integer |
gallery | getSelectedItemIndex | C#: int GetSelectedItemIndex(IRibbonControl control) VBA: Sub GetSelectedItemIndex(control As IRibbonControl, ByRef index) C++: HRESULT GetSelectedItemIndex([in] IRibbonControl *pControl, [out, retval] LONG *pcItemIndex) Visual Basic: Function GetSelectedItemIndex(control As IRibbonControl) As Integer |
gallery | onAction | C#: void OnAction(IRibbonControl control, string selectedId, int selectedIndex) VBA: Sub OnAction(control As IRibbonControl, selectedId As String, selectedIndex As Integer) C++: HRESULT OnAction([in] IRibbonControl *pControl, [in] BSTR *selectedId, [in] LONG cSelectedIndex) Visual Basic: Sub OnAction(control As IRibbonControl, selectedId As String, selectedIndex As Integer) |
menuSeparator | getTitle | C#: string GetTitle(IRibbonControl control) VBA: Sub GetTitle (control As IRibbonControl, ByRef title) C++: HRESULT GetTitle ([in] IRibbonControl *pControl, [out, retval] BSTR *pbstrTitle) Visual Basic: Function GetTitle (control As IRibbonControl) As String |
toggleButton | getPressed | C#: bool GetPressed(IRibbonControl control) VBA: Sub GetPressed(control As IRibbonControl, ByRef returnValue) C++: HRESULT GetPressed([in] IRibbonControl *pControl, [out, retval] VARIANT_BOOL *pvarfPressed) Visual Basic: Function GetPressed(control As IRibbonControl) As Boolean |
toggleButton | onAction - repurposed | C#: void OnAction(IRibbonControl control, bool pressed, ref bool cancelDefault) VBA: Sub OnAction(control As IRibbonControl, pressed As Boolean, byRef cancelDefault) C++: HRESULT OnAction([in] IRibbonControl *pControl, [in] VARIANT_BOOL *pvarfPressed, [in,out] VARIANT _BOOL *fCancelDefault) Visual Basic: Sub OnAction(control As IRibbonControl, pressed As Boolean, byRef CancelDefault) |
toggleButton | onAction | C#: void OnAction(IRibbonControl control, bool pressed) VBA: Sub OnAction(control As IRibbonControl, pressed As Boolean) C++: HRESULT OnAction([in] IRibbonControl *pControl, [in] VARIANT_BOOL *pvarfPressed) Visual Basic: Sub OnAction(control As IRibbonControl, pressed As Boolean) |