none
Repurpose Private button on Calendar appointment RRS feed

  • Question

  • Hi,

    I am trying to re-purpose private button in outllok 2010/2013 on the context menu of outlook appointment item.

    I am using follwing xml

    <contextMenus>
        <contextMenu idMso ="ContextMenuCalendarItem">
          <toggleButton idMso="Private" onAction="GetButtonID" />
        </contextMenu>
      </contextMenus>

    it seems like xml is correct because by setting isVisble to true/false i can see private button appears/disappears correctly.

    But OnAction does not seems to work. its never being called

    Public Sub GetButtonID(ByVal control As Microsoft.Office.Core.IRibbonControl, ByRef pressed As Boolean, ByRef cancel As Boolean)
            MsgBox("herre")
        End Sub

    I am not sure if definition of above method is correct.

    Also, in outlook 2007 i am using same techinique but it seems like the xml never get implemented. the firts if condition works in outlook 2010 but not in outlook 2007. 

    Public Function GetCustomUI(ByVal ribbonID As String) As String Implements Office.IRibbonExtensibility.GetCustomUI
            If (ribbonID = "Microsoft.Outlook.Explorer") Then
                Return GetResourceText("XMLAbove")
            End If
            If (ribbonID = "Microsoft.Outlook.Appointment") Then
                Return GetResourceText("anothexml")
            End If
            Return Nothing

        End Function

    Let me know what changes i can make to get it working in both outlook 2007 and 2010.

    Thanks

     Nit
    Thursday, January 14, 2016 5:16 PM

Answers

All replies