dan
unread,Jan 21, 2002, 5:13:34 PM1/21/02You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I am writing an application that contains typical menus and buttons,
but will have no mouse or keyboard support, only a "scroll" button and
a "select" button. To cycle through relevant widgets, i am using
PtContainerFocusNext(), and passing the return of
PtContainerFindFocus(ABW_base) to the function. This approach works
for buttons, menubuttons, etc, but for some reason
PtContainerFindFocus() does not seem to ever return menu items. The
problem is the same for the "select" button because i call
PtContainerFindFocus(ABW_base), get the x,y absolute coordinates of
the widget that it returned, and emit a mouse button event at those
coordinates. Again, it works fine for buttons, menubuttons, etc. but
not menu items because PtContainerFindFocus will never return a
pointer to a menu item, it will just return the last button that was
focused. Does this make sense? Does it have to with the fact that the
menu items have no global pointers to them? It would seem to me that
PtContainerFindFocus() (when passed the base window) should be able to
return menu items when they are focused..Any suggestions or
explainations would be extrememly helpful!!thanks,Dan