[comp.sys.mac.programmer] MacApp 2.0 - detecting double-clicks in inactive windows

sla@brillig.umd.edu (Steve Armentrout) (06/05/90)

My application has a window which contains a TTextListView of
items which can be selected by the user.  I wish to process
both single and double clicks that occur in the TTextListView
regardless of whether the window which contains it is active.
Currently, if the window is active, both single and double clicks
are detected and handled correctly by my override of TTextListView
.DoMouseCommand.  However, if the window is inactive, only single 
clicks are responding correctly. 

What do I need to do to receive the double-click when the window
is inactive?

My code in TMyTextListView.DoMouseCommand(..) reads something like:

	CASE info.theClickCount OF
		1:BEGIN
			create and return a TCommand for
			handling single clicks
		  END;

		2:BEGIN
			create and return a different TCommand
			for handling double-clicks
		  END;

		OTHERWISE DoMouseCommand := INHERITED DoMouseCommand(..)
	END;

	etc.

Thanks in advance for any insights,
Steve