Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!sun-barr!newstop!texsun!smunews!ti-csl!m2.csc.ti.com!markus From: markus@csc.ti.com (Markus Richardson) Newsgroups: comp.windows.x.motif Subject: Disabling XmNdefaultButton action on an insensitive pushButton? Keywords: help translation accelerators CR XtSetSensitive Message-ID: <1991Jan17.202203.3068@csc.ti.com> Date: 17 Jan 91 20:22:03 GMT Organization: TI Computer Science Center, Dallas 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