jgraham@CRC.SOFKIN.CA (Jay Graham) (06/27/91)
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
david@lta.lta.com (06/28/91)
> The 2nd, and more serious, problem is that the ActivateCallback > is invoked twice. > Configuration: > Motif 1.0 Sounds like PIRS 1121 ("double clicking on a menu item can cause multiple callbacks") which was dealt with in Motif 1.0.5. -- David B. Lewis Lewis, Trachtenberg & Associates (LTA) david@lta.com +1 617 225 0366 "Smuggling -- it's not just a job, it's an adventure!"