how to show bookmarks in a popupmenu?
-
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..
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.
-
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..
-
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.
-
then how mozilla browser is showing more then 30thousand bookmarks on clicking Bookmarks Menu...?
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.
-
then how mozilla browser is showing more then 30thousand bookmarks on clicking Bookmarks Menu...?
-
i tried to insert all menu item but its taking time to insert and after that my PC got restarted..
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.
-
then how mozilla browser is showing more then 30thousand bookmarks on clicking Bookmarks Menu...?
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.