> Hi all, > > We have a scrollbox application. > there are a set of menuitem widgets inside the scrollbox. > > If the size of the scrollbox is not enough to cover all the menuitems, we > will scroll through the menuitems using down/up keys. Let's say we have 20 > menuitems and only 6 of them fits in the box. It is ok to scroll down with > keys until item 6. However, after the 6th one, when we want to scroll down > to 7th, cursor points to the bottom of the box, not to 7th menuitem. If i > press up key and then down key, now i'm on the 7th item. Cursor points to > the 7th item, and everything seems normal. One more scroll-down and the same > thing happens again. > > Is there a way to avoid this, i mean by setting menuitem properties etc? > (I'm attaching part of my code below.)
This behavior is due to the way picogui navigate through widgets. The focus jump to the nearest widget in the selected direction. Then in your application, at a time or another one , you will have the scrollbox that will be nearest from the current menuitem then the next one... You can try to disable a widget from the navigation path using 'PG_EXEV_NO_HOTSPOT' But if this doesn't work, you will need to make a list of your menuitems and manage the focus manually. -philippe ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Pgui-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/pgui-devel
