Bug Report T316987
Visible to All Users

PopupMenu - Items are lost when copying a menu from one form onto another at design time

created 9 years ago

For example, i have a form with a few tabs, and for one reason or another, i want to move one of the tabbed pages to a separate form. all the GUI comes over fine using copy and paste in Visual Studio. The problem is that there was a popup menu that was used. This popup menu has several layers of menus, and a lot of options. When i try to copy the popup menu over, it wont even allow me to copy it. This means that I have to reconstruct the WHOLE menu with all the layers and other bits, and this can take a lot of time. (and a major annoyance) - plus it is easy to miss things. Is there a way to do a copy and paste of the whole popup menu? as it is rather silly not being able to do it.

Comments (3)
B B
Brendon Muck [DevExpress MVP] 9 years ago

    You'd probably need to copy over the BarManager first, since that's what actually holds the reference to your popup menu's BarButtonItems.

    DevExpress Support Team 9 years ago

      Hi,

      Originally, PopupMenu was not designed to support such a scenario. Since PopupMenu depends on BarManager, its items are cleared when you copy this menu onto another form. We understand that this feature would be useful. That is why I passed this behavior to our developers for investigation. They will research if it is possible to support this functionality in the current architecture. We will update this thread to notify you of our results.

      TH TH
      tony hasselbacher 9 years ago

        Thanks for that. As it would be a thing that everyone would do at least once, and it is something that is useful.
        Also on another side note, when you edit the Popup menus, another annoying thing is when the popup you are editing looses focus, it disappears. instead of staying open (ContextMenus stay open on standard winforms when you edit them). i know that there are some settings that change the appearances of the popups, but it should just redraw it and keep the popup open at the same time.

        Answers approved by DevExpress Support

        created 9 years ago (modified 9 years ago)

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Comments (1)
          TH TH
          tony hasselbacher 9 years ago

            Thanks for that…
            the hotfix works well.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.