How can I delete a pulldown-menu out the menugroup?

Discussion in 'AutoCAD' started by Hartmut Callies, Jun 25, 2004.

  1. Hallo,
    I have with VBA add a pulldown-menu "test" to the menugroup "amacad" from
    mechanical 2004.

    Dim objMenuGroup As AcadMenuGroup
    Dim objMenuPopup As AcadPopupMenu
    Set objMenuGroup = Application.MenuGroups.Load("amacad")
    Set objMenuPopup = objMenuGroup.Menus.Add("test")
    objMenuPopup.InsertInMenuBar

    Now I not know how I can delete the pulldown-menu "test" out the menugroup
    "amacad"!
    I think not "objMenuPopup.RemoveFromMenuBar". So is the pulldown-menu only
    invisible.
    I must delete!

    Thanks.


    Hartmut Callies
     
    Hartmut Callies, Jun 25, 2004
    #1
  2. Huh?

    Are you asking how to delete the pulldown menu from the .mnc/.mns file? That
    can't be done, AFAIK.

    From your post is does not seem that you have any trouble removing the Test
    pulldown menu from the actual menu bar, which is all you can do.

    --
    R. Robert Bell


    Hallo,
    I have with VBA add a pulldown-menu "test" to the menugroup "amacad" from
    mechanical 2004.

    Dim objMenuGroup As AcadMenuGroup
    Dim objMenuPopup As AcadPopupMenu
    Set objMenuGroup = Application.MenuGroups.Load("amacad")
    Set objMenuPopup = objMenuGroup.Menus.Add("test")
    objMenuPopup.InsertInMenuBar

    Now I not know how I can delete the pulldown-menu "test" out the menugroup
    "amacad"!
    I think not "objMenuPopup.RemoveFromMenuBar". So is the pulldown-menu only
    invisible.
    I must delete!

    Thanks.


    Hartmut Callies
     
    R. Robert Bell, Jun 26, 2004
    #2
  3. Yes, when I use the command "objMenuPopup.RemoveFromMenuBar", so can
    later the user manual activate the pulldown-menu "test" in the menugroup
    "amacad"
    with the autocad menu-commands. So I must delete the pulldown-menu "test"
    out
    the menugroup "amacad", than the user can not see the pulldown-menu "test"
    in
    the autocad menu dialogbox.

    Hartmut Callies
    ___________________________________________________________
     
    Hartmut Callies, Jun 26, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.