Page 1 of 1

scrolling in large popup menu

Posted: Tue Feb 16, 2010 14:39
by Tiresias
Hello
i noticed that contrary to the mfc library, when you create a cegui contextual menu (popup menu) with lot of items inside, there is no button to allow user to scroll all items that are not displayed in the menu. I saw issue on 6.2, didnt check on 7.1. Is this something team thought about or is it something that must be implemented by user? how shall we do it?

thanks

Re: scrolling in large popup menu

Posted: Tue Feb 16, 2010 21:09
by scriptkid
Hi,

This behaviour is not built into Cegui itself. I wouldn´t even know how it looks in Mfc (maybe with a sub-sub menu as the last item? Like with the Start menu?), but you might go the route of (trying to) modify the looknfeel of the Popup window, so that it has scrolling behaviour. For example by adding a ScrollablePane auto-child or something. That's just a quick idea ;)

HTH.

Re: scrolling in large popup menu

Posted: Wed Feb 17, 2010 10:00
by Tiresias
ok thanks.

in windows when the menu has too many items, there is a small arrow on top or down that appears (just when the library detect that part of the menu is outside the screen) and if u click on it the menu list is scrolled down or up.

Re: scrolling in large popup menu

Posted: Wed Feb 17, 2010 10:59
by CrazyEddie
You could also consider 'faking' it using an ItemListbox; actually ItemListbox and PopupMenu share a common base class. You could also consider kind of merging the two into a new widget type - ScolledPopupMenu ;)

CE.