Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!csc.ti.com!ti-csl!m2.csc.ti.com!vlsic2!markus From: markus@vlsic2.ti.com (Markus Richardson) Newsgroups: comp.windows.x.motif Subject: Disabling XmNdefaultButton action on an insensitive pushButton? Keywords: help translation accelerators CR XtSetSensitive (hmm, what else?) Message-ID: Date: 10 Jan 91 23:19:01 GMT Sender: usenet@csc.ti.com (USENET News System) Distribution: comp Organization: Texas Instruments Inc, VLSI Design Lab, Dallas, TX Lines: 19 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 key, the XmNactivateCallback function for that pushButton is invoked (just as expected). When I set the pushButton insensitive (via XtSetSensitive), the 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