Newsgroups: comp.sys.mac.programmer
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!m.cs.uiuc.edu!ux1.cso.uiuc.edu!usenet
From: dmmg1176@uxa.cso.uiuc.edu (David M Marcovitz)
Subject: Double Click in Think C
Message-ID: <1991Apr9.203739.29376@ux1.cso.uiuc.edu>
Sender: usenet@ux1.cso.uiuc.edu (News)
Organization: University of Illinois at Urbana
Date: Tue, 9 Apr 1991 20:37:39 GMT
Lines: 19


Is there an easy way to implement double clicking in Think C?  That
is, I have an object that I want to do something special when I double
click on it (and something else when I single click on it).  Actually,
the function I want is similar to what happens to an icon in the
finder:  a single click (and holding the cursor down) allows you to
drag an icon around the screen; a double click allows you to edit the
icon's name.

I assume I can do something with TickCount and GetDblTime in my
object's DoClick method, but I would rather have a DoDoubleClick
method that gets a message when I double click (and not have the
DoClick method get a message).  Is this done for me somewhere in TCL,
or do I have to do it myself in my DoClick method?

--
David M. Marcovitz                     |  internet: marcovitz@uiuc.edu
Computer-based Education Research Lab  |            dmmg1176@uxa.cso.uiuc.edu
University of Illinois                 |  novanet:  marco / cca / cerl
