• Creator
    Topic
  • #3993
    Anonymous

      (GW6.5.1)
      I have tried this method without success, I have tried your example applet “Enabling or Disabling Document Management”. The menu options are disabled by the menu items remain in place and “black”. Just to confirm I am a Newbie, but I have restarted the client as instructed.

    • Author
      Replies
    • #6802
      Support 1
      Participant

        The menu context for RemoveMenuItem changed in GroupWise 6.5.1. We will update the applet on Cool Solutions very soon. In addition, we will update the documentation on RemoveMenuItem in our Formativ Language Guide.

        Here is some sample code that works with all GroupWise versions.

          dim iText
        
          iText = "Disable (File | New | Document) menu items on the GroupWise client menus?"
          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.CLIENTFileNewDocument")
            else
              call GroupWise.RemoveMenuItem("GW.CLIENT.WINDOW.BROWSERFileNewDocument")
            end if
          else
            call GroupWise.ResetMenuItems
            call GroupWise.EnableCommand(858) 'AddNewDocument()
          end if
         
          call msgbox("Restart GroupWise to see the changes.")
        

        Advansys Support

        #6803
        Anonymous

          Thank you for a very prompt and effective response

          Chris

          #6801
          Support 1
          Participant

            Always happy to help.

            Advansys Support

          Viewing 3 replies - 1 through 3 (of 3 total)
          • You must be logged in to reply to this topic.