[ Previous | Next | Contents | Glossary | Home | Search ]
Motif 2.1 Widget Writer's Guide



Leave Actions

The X Window System generates a LeaveWindow event whenever the pointer passes out of your widget. In order for traversal to work properly, your widget must call the PrimitiveLeave action of XmPrimitive. This action encapsulates the appropriate Motif response to a LeaveWindow event. In short, this action does the following:

  1. Removes the keyboard focus from this widget if the keyboard focus policy is XmImplicit. (If the keyboard focus policy is XmExplicit, the PrimitiveLeave action does not change the keyboard focus.)

  2. Unhighlights the widget if primitive.highlight_on_enter is set to True.

    You can invoke PrimitiveLeave either from within the actions array or by enveloping it inside an action.


  3. [ Previous | Next | Contents | Glossary | Home | Search ]