View topic - Focus problem

Focus problem

Isn't the name clear?

Focus problem

Postby Mukeshkumar » Fri Jun 26, 2009 4:26 am

I am giving focus to a combobox widget using PtGlobalFocusNext() or PtGlobalFocusPrev(). After giving focus i am retreiving the integer value of the combobox widget using ApName(), but the integer value of combobox widget defined in abvars.h file is different from what i get using ApName().
Pls suggest how can i get the same integer value for combobox widget.
New Member
Posts: 7
Joined: Tue Apr 28, 2009 10:24 am

RE: Focus problem

Postby Fregl » Fri Jun 26, 2009 11:48 am


Give focus to the previous widget


PtWidget_t *PtGlobalFocusPrev( PtWidget_t *widget,
PhEvent_t *event );




This function finds the currently focused widget in the same disjoint
widget (window, region, menu) as widget and moves the focus to the
previous focusable widget.
The widget that's given focus receives event as the reason. If event is
NULL, this function generates a PhEvent_t structure filled with zeros
for you.


The widget that was given focus, or NULL if no focusable widgets are

RTFM! these functions doesn't return ABN names ... they're returns ABW_ ... just pointers to PtWidget_t * ptr...
Active Member
Posts: 41
Joined: Thu Jun 05, 2008 10:43 am
Location: Ukraine

Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 1 guest