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 bookmarks in a popupmenu?

how to show bookmarks in a popupmenu?

Scheduled Pinned Locked Moved C / C++ / MFC
toolstutorialquestion
8 Posts 3 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 am writing small utility there i wanted to show all bookmarks on right click of one icon(as a popupmanu)...it is working fine upto 2000 bookmarks or more(depends)... i want to insert more bookmarks to popupmanu..

    L 2 Replies Last reply
    0
    • Y yogish293

      i am writing small utility there i wanted to show all bookmarks on right click of one icon(as a popupmanu)...it is working fine upto 2000 bookmarks or more(depends)... i want to insert more bookmarks to popupmanu..

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

      Your numbers are really too large for the mechanism you have chosen. Popup menus are designed to hold small numbers (fewer than 50) of items. If you want to display large lists then you would be better using some form of scrollable view or list. There are plenty to choose from among the windows controls.

      I must get a clever new signature for 2011.

      Y 1 Reply Last reply
      0
      • Y yogish293

        i am writing small utility there i wanted to show all bookmarks on right click of one icon(as a popupmanu)...it is working fine upto 2000 bookmarks or more(depends)... i want to insert more bookmarks to popupmanu..

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

        This is essentially a repost of the same question[^], were the answers there not helpful?

        1 Reply Last reply
        0
        • L Lost User

          Your numbers are really too large for the mechanism you have chosen. Popup menus are designed to hold small numbers (fewer than 50) of items. If you want to display large lists then you would be better using some form of scrollable view or list. There are plenty to choose from among the windows controls.

          I must get a clever new signature for 2011.

          Y Offline
          Y Offline
          yogish293
          wrote on last edited by
          #4

          then how mozilla browser is showing more then 30thousand bookmarks on clicking Bookmarks Menu...?

          L Y M 3 Replies Last reply
          0
          • Y yogish293

            then how mozilla browser is showing more then 30thousand bookmarks on clicking Bookmarks Menu...?

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

            yogish293 wrote:

            then how mozilla browser is showing more then 30thousand bookmarks on clicking Bookmarks Menu...?

            Probably by writing some clever code. I did not say it was impossible, just not the best way to do things. You probably need to create a virtual menu which does not have any items in it but uses the owner draw feature to return the relevant items when the user clicks or scrolls into the menu. However, you should ask yourself whether your users will really have the patience to search through such a list for one single item.

            I must get a clever new signature for 2011.

            1 Reply Last reply
            0
            • Y yogish293

              then how mozilla browser is showing more then 30thousand bookmarks on clicking Bookmarks Menu...?

              Y Offline
              Y Offline
              yogish293
              wrote on last edited by
              #6

              i tried to insert all menu item but its taking time to insert and after that my PC got restarted..

              L 1 Reply Last reply
              0
              • Y yogish293

                i tried to insert all menu item but its taking time to insert and after that my PC got restarted..

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

                yogish293 wrote:

                i tried to insert all menu item but its taking time to insert and after that my PC got restarted..

                Well that should give you a clue that those of us who are suggesting that you need to rethink your design may actually have a point.

                I must get a clever new signature for 2011.

                1 Reply Last reply
                0
                • Y yogish293

                  then how mozilla browser is showing more then 30thousand bookmarks on clicking Bookmarks Menu...?

                  M Offline
                  M Offline
                  Maximilien
                  wrote on last edited by
                  #8

                  And you think it's a good idea ? Anyway, it's probably some sort of "ownerdrawn" nenu. I could suggest you have a look at the Firefox/Mozilla source code.

                  Watched code never compiles.

                  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