From: Richard K. <ric...@us...> - 2005-07-27 04:14:03
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22942 Modified Files: ASTheme.as ASThemeProtocol.as Log Message: added extra method to draw firstResponder Index: ASThemeProtocol.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASThemeProtocol.as,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** ASThemeProtocol.as 20 Jul 2005 18:07:11 -0000 1.13 --- ASThemeProtocol.as 27 Jul 2005 04:13:47 -0000 1.14 *************** *** 90,93 **** --- 90,98 ---- /** + * Draws the border around the button when it has key focus + */ + public function drawFirstResponderWithRectInClip(rect:NSRect, clip:MovieClip); + + /** * Draws the the ASList background */ Index: ASTheme.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASTheme.as,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** ASTheme.as 20 Jul 2005 18:51:25 -0000 1.21 --- ASTheme.as 27 Jul 2005 04:13:47 -0000 1.22 *************** *** 104,108 **** public function drawFirstResponderWithRectInView(rect:NSRect, view:NSView) { ! var mc = view.mcBounds(); var x = rect.origin.x+1; var y = rect.origin.y+1; --- 104,111 ---- public function drawFirstResponderWithRectInView(rect:NSRect, view:NSView) { ! drawFirstResponderWithRectInClip(rect, view.mcBounds()); ! } ! ! public function drawFirstResponderWithRectInClip(rect:NSRect, mc:MovieClip) { var x = rect.origin.x+1; var y = rect.origin.y+1; *************** *** 111,115 **** var color = firstResponderColor().value; ! mc.lineStyle(3, color, 30); mc.moveTo(x, y); mc.lineTo(x+width, y); --- 114,118 ---- var color = firstResponderColor().value; ! mc.lineStyle(3, color, 40); mc.moveTo(x, y); mc.lineTo(x+width, y); *************** *** 117,122 **** mc.lineTo(x, y+height); mc.lineTo(x, y); - - //ASDraw.outlineRectWithRect(view.mcBounds(), rect, [firstResponderColor().value]); } --- 120,123 ---- |