Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!CRC.SOFKIN.CA!jgraham From: jgraham@CRC.SOFKIN.CA (Jay Graham) Newsgroups: comp.windows.x.motif Subject: XmPushbutton and double clicks. Message-ID: <9106261849.AA16500@crc.sofkin.ca> Date: 26 Jun 91 18:49:05 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 40 We have 2 problems with part of our Motif application. We have a pulldown menu with options that, when selected, manage a Bulletinboard Dialog with a List and some Pushbuttons. One of the Pushbuttons (Ok) when selected with the mouse invokes a callback (ActivateCallback) that will unmanage the Bulletinboard Dialog (and do other processing). The first problem we have seen is that if the Ok button is double (or triple) clicked, then when the BulletinBoard Dialog is managed again (via pulldown) the Ok button shows it's Arm colour (looks like it is selected) when the mouse pointer is on the button. I assume that the Pushbutton set it's Arm colour for the second click, and then the widgets get unmanaged by the callback from the first click. Is there a way that I can stop the second click from leaving the Arm colour set? (Maybe unset the Arm colour when I manage?) The 2nd, and more serious, problem is that the ActivateCallback is invoked twice. How do I stop the second callback? Do I have to keep a Time_Elapsed variable and skip the callback processing if a specified amount of time has not elapsed?. Configuration: Motif 1.0 X11R3 386/ix AT&T 6386/25 Jay Graham Software Kinetics Ltd. Ottawa, Ontario, Canada jgraham@crc.sofkin.ca