From: Richard K. <ric...@us...> - 2005-07-27 18:19:40
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27918 Modified Files: ASTestView.as Log Message: accepts first responder now Index: ASTestView.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/test/ASTestView.as,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ASTestView.as 27 May 2005 22:16:09 -0000 1.6 --- ASTestView.as 27 Jul 2005 18:19:31 -0000 1.7 *************** *** 32,35 **** --- 32,36 ---- import org.actionstep.NSRect; import org.actionstep.NSColor; + import org.actionstep.NSEvent; class org.actionstep.test.ASTestView extends NSView { *************** *** 57,60 **** --- 58,69 ---- } + public function mouseDown(event:NSEvent) { + TRACE(event.clickCount); + } + + public function acceptsFirstResponder():Boolean { + return true; + } + public function drawRect(rect:NSRect) { with(m_mcBounds) { *************** *** 63,67 **** lineStyle(1, m_borderColor.value, 100); } else { ! lineStyle(0, 0x000000, 0); } beginFill(m_backgroundColor.value, 100); --- 72,76 ---- lineStyle(1, m_borderColor.value, 100); } else { ! lineStyle(1, m_backgroundColor.value, 100); } beginFill(m_backgroundColor.value, 100); |