On Jul 17, 2007, at 9:57 AM, MacArthur, Ian ((SELEX)) ((UK)) wrote: > >> >> I allow the user to dynamically add items to a menu >> (currently an Fl_Input_Choice) and they can add as many items >> as they want. If I add too many the menu fills the height of >> the screen. >> >> This doesn't look good and I would prefer the menu to scroll >> after a limit like a HTML select box. >> What do you recommend? > > The fltk menus do scroll once they are full - but that doesn't kick in > until the screen is full... I guess you could derive your own menu > widget and alter it's size limit behaviour, erm, somehow...
There is no limit to the size of the menu until you hit the screen border. This is a reaction to the Window98 behavior where some programmers generate pulldowns that have a maximum of four (!) items visible, and you must scroll to find the other fifty-some options. Extremely long pulldown menus are notoriously hard to use. Maybe you can subdivide or categorize the user's choices and create a more structure submenu system? Maybe you could use a browser, or multiple browsers, instead? If you must have this feature you need to write it your self. There is no provision in FLTK for limiting the pulldown menu size. > Did Matthias not have a fancy menu widget? Or am I thinking of his > fancy > tab widget...? That would have been a Tab widget. ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

