Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!acorn!ixi!ixi!pd From: pd@pd@x.co.uk (Paul Davey) Newsgroups: comp.windows.x Subject: Re: Multi-click Message-ID: Date: 6 Jun 91 17:07:22 GMT References: <9106041626.AA07464@sid1.cenaath.cena.dgac.fr> Sender: paul@x.co.uk (Paul Davey) Organization: IXI Ltd. Lines: 30 In-Reply-To: fcolin@cenaath.cena.dgac.fr's message of 4 Jun 91 16: 26:51 GMT >>>>> On 4 Jun 91 16:26:51 GMT, fcolin@cenaath.cena.dgac.fr (Francois-Regis COLIN) said: Francois> I am using Motif 1.1 and I want to do different action on a button Francois> depending on single click or double-click. I have try to put Francois> the following translation table on this button: Francois> : Arm() \n\ Francois> (2) : Activate() Francois> but I cannot get this to work correctly: Francois> I make a single click the Arm callback is called Francois> but when I make a double click the Arm callback is called Francois> with the activate callbak . Francois> the doc says that the sorter sequence is not called if Francois> the events maps the longest sequence ? Francois> is this normal or a bug in the Intrinsics or in Motif ? Normal, multiple clicks are a documented exception to the `longest sequence' rule. You'll have to code a single click procedure that uses an application time out to perform the single action, and then cancel this if another single click is received during the delay period, then initiating a double click action. -- Regards, pd@x.co.uk IXI Limited Paul Davey pd@ixi.uucp 62-74 Burleigh St. ...!uunet!ixi!pd Cambridge U.K. "These are interesting times" +44 223 462 131 CB1 1OJ USA: 1 800 XDESK 57