Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to show 10thousand items in menu? [modified]

how to show 10thousand items in menu? [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
11 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yogish293
    wrote on last edited by
    #1

    i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem,.. pls give me some inputs..

    modified on Monday, January 10, 2011 9:01 AM

    H L Y S _ 10 Replies Last reply
    0
    • Y yogish293

      i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem,.. pls give me some inputs..

      modified on Monday, January 10, 2011 9:01 AM

      H Offline
      H Offline
      HimanshuJoshi
      wrote on last edited by
      #2

      One word for you; Redesign. Even if you succeed in creating that mess it would look horrible just opening 10K items in a menu, and a contextmenu at that.

      1 Reply Last reply
      0
      • Y yogish293

        i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem,.. pls give me some inputs..

        modified on Monday, January 10, 2011 9:01 AM

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Ignoring the fact if this is userfriendly or not, it shouldn't be impossible to create something like that. With 100 hierarchy levels and 10000 items, it's not needed to have the actual 10000 items in the menu at the same time. You can add the sub items when their parent is opened, rather than adding everything at once. e.g. Visible menu: File | Edit | View | History | Bookmarks | Tools | Help That's 7 required visible items. Now when the user clicks on an item, for example Edit, you'd insert the appropriate sub items; Undo | Redo | Cut | Copy | Paste | Delete | Select all | Find | Find again Now you've added only 10 items, since you can ignore all the subitems under File, View, History etc.

        1 Reply Last reply
        0
        • Y yogish293

          i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem,.. pls give me some inputs..

          modified on Monday, January 10, 2011 9:01 AM

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I would suggest you have 9,990 too many. Nobody can possibly navigate that many items (nor would they want to) in a main window menu, let alone a context menu. Go back to the drawing board and re-think what you are trying to achieve.

          I must get a clever new signature for 2011.

          1 Reply Last reply
          0
          • Y yogish293

            i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem,.. pls give me some inputs..

            modified on Monday, January 10, 2011 9:01 AM

            Y Offline
            Y Offline
            Yusuf
            wrote on last edited by
            #5

            yogish293 wrote:

            0 thousand items with more than 100 hierarchy level,

            I hope that is a typo. If not there is something horrible wrong with your design. Having 10K menu entries is simply not the way to design an application. One word comes to mind, Refactor your design.

            Yusuf May I help you?

            1 Reply Last reply
            0
            • Y yogish293

              i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem,.. pls give me some inputs..

              modified on Monday, January 10, 2011 9:01 AM

              S Offline
              S Offline
              Stefan_Lang
              wrote on last edited by
              #6

              I take it there are tons of functions being called by these menu items that are technically the same, but are just applied on different data, with different options, in different modes of operation, etc.. Provided this is true, you should seriously consider all these entries to be replaced by a call to just one dialog box that lets you select all the extra parameters you need. Do that with all menu of your current menu items and see how many individual function calls you end up with - I bet it's less than a 100. If not then this is the most weird application I've ever heard of, apart from MS Word. ;P

              1 Reply Last reply
              0
              • Y yogish293

                i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem,.. pls give me some inputs..

                modified on Monday, January 10, 2011 9:01 AM

                _ Offline
                _ Offline
                _Superman_
                wrote on last edited by
                #7

                Please consider usability, especially when designing UIs. I've come to understand that UI design is very involved and it is a winning factor between competing products. You must first think if you yourself will use such a software. In this case think of selecting a random menu item every minute. Run that through your mind for some time and see if you give up using it.

                «_Superman_»  _I love work. It gives me something to do between weekends.

                _Microsoft MVP (Visual C++)

                Polymorphism in C

                1 Reply Last reply
                0
                • Y yogish293

                  i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem,.. pls give me some inputs..

                  modified on Monday, January 10, 2011 9:01 AM

                  C Offline
                  C Offline
                  CPallini
                  wrote on last edited by
                  #8

                  yogish293 wrote:

                  pls give me some inputs..

                  You already have so many... :rolleyes:

                  If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                  This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                  [My articles]

                  1 Reply Last reply
                  0
                  • Y yogish293

                    i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem,.. pls give me some inputs..

                    modified on Monday, January 10, 2011 9:01 AM

                    R Offline
                    R Offline
                    Rolf Kristensen
                    wrote on last edited by
                    #9

                    Think the main rule is that if the user have more than 8 menu items to choose between, then you should consider redesigning the GUI.

                    1 Reply Last reply
                    0
                    • Y yogish293

                      i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem,.. pls give me some inputs..

                      modified on Monday, January 10, 2011 9:01 AM

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      yogish293 wrote:

                      i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem

                      What is the problem?

                      ...byte till it megahertz... my donation to web rubbish

                      1 Reply Last reply
                      0
                      • Y yogish293

                        i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem,.. pls give me some inputs..

                        modified on Monday, January 10, 2011 9:01 AM

                        Y Offline
                        Y Offline
                        yu jian
                        wrote on last edited by
                        #11

                        Oh MyGod, Does not the sytem error?

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups