Subclass of DrawingArea refuses focus

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Subclass of DrawingArea refuses focus

 

I have subclassed an XmDrawingArea.
My subclass draws some things directly, and has one child. I capture Button1Down and call XmProcessTraversal(me,XmTRAVERSE_CURRENT).

The traversal always fails. If my child is an XmLabel, input focus after the traversal call remains with the old widget that had focus; if my child is a button, the button becomes the new focus widget after the traversal call.

Why can't my widget get focus?
-Fred

 

 

And the answer seems to be

And the answer seems to be that a Manager or subclass thereof cannot accept focus if it has any focusable descendants.
--
Fred K