> I'm afraid PG_EXEV_NO_HOTSPOT can only be set for buttons and their
> variations. It's not possible to use that for a scrollbox widget.
> 
> On the other hand, I cannot deal with focus manually since menuitems do not
> send any other events than focus or activate. If they did, i could capture
> the exact key pressed and handle user events accordingly. So, is there a way
> to make them send keydown, keyup etc. events?

I mean you have to :

1) manage manually a list of your menuitems with something like a single or
   double linked list

typedef struct {
  pghandle    oneEntry;
  int         selected;
  int         visible;
  int         focused;
} myList;

2) trap the KEY_UP and KEY_DOWN events.

   Which you could achieve with a invisible button that has this two hotkeys
   set on it

3) Set the focus on the item wiht pgFocus or pgSetWidget.


-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

Reply via email to