[comp.windows.x.motif] Disabling XmNdefaultButton action on an insensitive pushButton?

markus@csc.ti.com (Markus Richardson) (01/18/91)

config: Motif v1.0.A running X11R4 on a DS5000
hierarchy: pushButton on a BulletinBoard with DialogShell as parent.

On a BulletinBoard, I set the XmNdefaultButton to an existing pushButton.
By pressing the <RETURN> key, the XmNactivateCallback function for that
pushButton is invoked (just as expected).

When I set the pushButton insensitive (via XtSetSensitive), the <RETURN>
key still does its thing.  Do I have to explicitly "unset" the 
XmNdefaultButton resource each time I want the pushButton to be insensitive?
Isn't there an easier way?

As always, thanks in advance!

--
Markus R.  (markus@ti.com)

"If people built houses the way we write programs, the first woodpecker 
 would wipe out civilization"  The Cuckoo's Egg by Cliff Stoll