Focus on an XmList ?

Focus on an XmList ?

Post by JF Meze » Wed, 24 Nov 2004 12:45:12

The XmList widget doesn't seem to handle focus callbacks.

By using the TAB, one can navigate between widgets without the mouse and get
to a point when the XmList widget is "active" and then use arrow keys to
scroll up and down and then select to select an item.

Is there an easy way for the application to know that the user has tabbed to
the XmList widget if there is no focus callback ?

I want to know what area the user has last visited so that if a find command
is entered, it will act on that widget.

Focus on an XmList ?

Post by ST » Sun, 13 Mar 2005 00:46:29

Change the translation for FocusIn, being careful to preserve the
existing one so the list doesn't break.

*XmList.baseTranslations: #override\n\
<FocusIn>: ListFocusIn() your_focus_action_routine()

Then write an action routine to handle the translation.