From: Peter Schaefer Newsgroups: comp.os.msdos.djgpp Subject: Re: Double Click Date: Fri, 16 May 1997 18:09:35 +0200 Organization: http://malaga.math.uni-augsburg.de/schaefer/ Distribution: world Message-ID: <337C86BF.41C6@malaga.math.uni-augsburg.de> References: <01bc61a3$40e5d960$46c074cf AT ian> NNTP-Posting-Host: sevilla.math.uni-augsburg.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 29 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ian Pitt wrote: > > I am writing a mouse routine using DJGPP but I am having trouble > implementing detection of a Double Click. Does anybody have any > suggestions? There are two ways I noticed this is done: - the double click is always preceded by a single click This has the drawback that the application must not do anything that can't be undone fast. - specify a delay before the system decides what kind of click it is. This annoy the user with delays. Perhaps best would be to have a sth. that gives out 3 kinds of messages for this: Event Time Message Mouseclick T+0 MouseClick Mouseclick T