www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/16/13:52:32

From: Peter Schaefer <schaefer AT malaga DOT math DOT uni-augsburg DOT de>
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
Lines: 29
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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<DoubleCLickT	DoubleClick
TimerExpired	T=DoubleClickT  SingleClick

-- 
Peter Schaefer              
mailto:schaefer AT malaga DOT math DOT uni-augsburg DOT de     

"leisure": http://wwwhoppe.math.uni-augsburg.de/schaefer/Willkommen.html
"office": http://wwwhoppe.math.uni-augsburg.de/schaefer/me.html

What does the left half of a Zen Master teach ?
.gnillaf speek exa na nehw edisa pets oT

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019