Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!ucbvax!us.oracle.com!cuweiss.US2.oramail From: cuweiss.US2.oramail@us.oracle.com ("Connie Weiss ", note the U =>) Newsgroups: comp.windows.x.motif Subject: Re: Pushbutton callback problem Message-ID: <9008151804.AA10891@dvlseq.us.oracle.com> Date: 15 Aug 90 18:04:13 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 50 In-Reply-To: DVLSEQ:motif-request@alphalpha.com's message of 08-15-90 15:51 I had the same problem, with a pushbutton in a bulletin board dialog. My workaround was to put the pushbutton in a row column widget (even though it was just one button). It's a mystery to my as to why it behaves this way, I'm just hoping it's fixed in 1.1. Connie Weiss (cuweiss@oracle.com) ---- Included Message ---- Received: 08-15-90 09:41 Sent: 08-15-90 15:51 From: DVLSEQ:motif-request@alphalpha.com To: motif%alphalpha.com@munnari.OZ.AU Subject: Pushbutton callback problem Reply-To: DVLSEQ:motif-request@alphalpha.com Resent-From: nazgul@alphalpha.com (Kee Hinckley) Resent-Message-Id: <9008151530.AA25102@alphalpha.com> X-Mailer: ELM [version 2.2 PL0] Resent-To: motif-tmp@alphalpha.com Resent-Date: Wed, 15 Aug 90 11:30:25 EDT I have a pushbutton within a form within a dialog shell. When I push the button, not only does it call the callback that I have added, but it also exits the whole dialog! I presume it unmanages it but I don't know. The bulletin board doco says that it defines Btn1Down as Arm() and Btn1Up as Activate() but that doesn't help me much. I want the dialog to stick around until I tell it to go. I have discovered the following workaround: use XtRemoveAllCallbacks on XmNarmCallback and XmNdisarmCallback before adding my own callbacks, but that leaves these questions: a) Am I doing this the right way; b) Who is adding these extra callbacks (if that's what is happening), and what do they do; and c) Why the *?!!?* can't I find it in the Motif doco? +----------------------+---+ | Jan Newmarch |:-)| ACSnet: jan@ucisae.isae.cancol.oz.au | Info. Sciences & Eng.|___| ARPA: jan%ucisae.isae.cancol.oz.au@uunet.uu.net | Univ Canberra | UUCP: {uunet,ukc}!munnari!ucisae.isaecancol.oz.au!jan | P.O. Box 1 | CSNET: jan%uciase.isae.cancol.oz@australia | Belconnen A.C.T. 2616 | JANET: jan%au.oz.cancol.isae.ucisae@EAN-RELAY | AUSTRALIA | +--------------------------+