/ Forums / Advansys Formativ / Creating Solutions with Formativ / RemoveMenuItem / Reply To: RemoveMenuItem
March 10, 2004 at 5:18 pm
#6932
The menu context for RemoveMenuItem changed in GroupWise 6.5.1. I am sorry that the documentation on RemoveMenuItem in our Formativ Language Guide is out of date.
Here is some sample code that works with all GroupWise versions.
dim iText iText = "Disable (File | Import Documents...) menu item on the GroupWise client?" if MsgBox(iText, vbYesNo, "Enable/disable menu item") = vbYes then ' GroupWise 6.5.1 or later uses the short menu path. if GroupWise.EnvVersionName >= "6.5.1" then call GroupWise.RemoveMenuItem("GW.CLIENTFileImport Documents...") else call GroupWise.RemoveMenuItem("GW.CLIENT.WINDOW.BROWSERFileImport Documents...") end if else call GroupWise.ResetMenuItems call GroupWise.EnableCommand(858) 'AddNewDocument() end if call MsgBox("Restart GroupWise to see the changes.")
I hope this helps.
Advansys Support