Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PtContainerGetFocus() and menus

2 views
Skip to first unread message

dan

unread,
Jan 21, 2002, 5:13:34 PM1/21/02
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

dan

unread,
Jan 22, 2002, 9:58:00 AM1/22/02
to
I just realized that this problem may have to do with the fact that
Menus are disjoint and may not considered to be children of the base
window..(Thus PtContainerFindFocus(ABW_base) will never return a menu
item) If this is the case, how can i determine when they have focus??
A PtGlobalFindFocus() function or something similar would be
helpfull..

-dan


dancr...@hotmail.com (dan) wrote in message news:<f316cf76.02012...@posting.google.com>...

0 new messages