Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!apple!sun-barr!decwrl!granite!pjs From: pjs@granite.dec.com (Philip Schneider) Newsgroups: comp.windows.x Subject: Help with double-click recognition. Message-ID: <603@granite.dec.com> Date: 13 Oct 89 17:12:24 GMT Organization: DEC Advanced Technology Development, Palo Alto, CA Lines: 30 Okay, toolkit wizards, how about this one: I've created a drawing widget under Xaw by modifying the "TemplateWidget" example in the Athena Widget documentation. I've tried in many ways to figure out how to get it to call one callback on a single button press, and another for a double-click. So far, I've not been succesful, and it seems from my understanding of the documentation and from my experimentation that it might not be possible. Is there something obvious I'm overlooking, or what? Any solution to this problem would be greatly appreciated. If the answer has to be "I know how to do it with Motif, or DECWindows", etc., that's no problem. I DO have a solution that involves trapping the single button-press, checking the event queue for the appropriate ButtonPress and ButtonRelease events, and attempting to "do the right thing"; this, however, is unreliable due to the "meddling" of the toolkit with the event queue, and is rather ugly :-) - Philip Schneider -- Philip J. Schneider | pjs@decwrl.dec.com DEC Advanced Technology Development | decwrl!pjs 100 Hamilton Avenue | (415)853-6538 Palo Alto, CA 94301 | (415)386-8232