Callback calls / Tags


Callback calls / Tags

At this point you may set an other callback for a chosen Ribbon XML control.

You may also assign upto three customized tag values for most of the ribbon elements. These values can be read with VBA as follows:

i.e.: For a ribbon Button:

Sub OnActionButton(control As IRibbonControl)

Dim varVar1 As String
Dim varVar2 As String
Dim varVar3 As String

varVar1 = getTheValue(control.Tag, "CustomTagValue1")
varVar2 = getTheValue(control.Tag, "CustomTagValue2")
varVar3 = getTheValue(control.Tag, "CustomTagValue3")

'....

End Sub

Using the button "Set Default Values" the default callbacks will be restored. These data will be read from settings on: Options / Default Callback calls

Advice : In order to use the callback "getImage" in Word / Excel it is required that the name of the callback (Name of the function) is different from the standard function named "getImage" which is set in the options.

Using the button "OK" will save the entered values for the control.


See also:
Default Callback calls

  Last Updated: 04.05.2011 | © 2007-2011 IDBE Avenius,