[Q] doubleclickable and dragable morph: how?

Ned Konz ned at bike-nomad.com
Fri May 2 05:32:04 UTC 2003


On Thursday 01 May 2003 07:18 pm, tblanchard at mac.com wrote:

> Try double clicking on it - the color picker often never appears,
> or when it does it opens and closes immediately.  I think its
> pulling a mouse event it shouldn't get but I'm not having any luck
> tracking it down.

Upon some reflection, this ugly hack should work.
Anyone got any better ideas?

doubleClick: anEvent
	"mouse is still down when this is called."

	[ anEvent hand lastEvent redButtonPressed ]
		whileTrue: [ World doOneCycleNow  ].	"wait till button released"
	self changeColor


-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list