From: Richard K. <ric...@us...> - 2005-07-27 04:22:51
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23635 Modified Files: ASList.as NSView.as Log Message: add min/max depth for clips, and highlight clip to ASList Index: NSView.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSView.as,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** NSView.as 18 Jul 2005 03:51:36 -0000 1.29 --- NSView.as 27 Jul 2005 04:22:34 -0000 1.30 *************** *** 62,65 **** --- 62,68 ---- public static var NSViewBoundsDidChangeNotification = ASUtils.intern("NSViewBoundsDidChangeNotification"); + public static var MaxClipDepth = 1048575; + public static var MinClipDepth = -16384; + // private hidden instance variables private var m_frame:NSRect; Index: ASList.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASList.as,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ASList.as 21 Jul 2005 02:36:14 -0000 1.10 --- ASList.as 27 Jul 2005 04:22:34 -0000 1.11 *************** *** 56,59 **** --- 56,60 ---- private var m_action:String; private var m_showsFirstResponder:Boolean; + private var m_firstResponderClip:MovieClip; public function initWithFrame(rect:NSRect):ASList { *************** *** 61,65 **** m_internalList = new NSArray(); m_scrollView = new NSScrollView(); ! m_scrollView.initWithFrame(new NSRect(0,1,rect.size.width-2, rect.size.height-2)); m_scrollView.setHasVerticalScroller(true); addSubview(m_scrollView); --- 62,66 ---- m_internalList = new NSArray(); m_scrollView = new NSScrollView(); ! m_scrollView.initWithFrame(new NSRect(0,0,rect.size.width, rect.size.height)); m_scrollView.setHasVerticalScroller(true); addSubview(m_scrollView); *************** *** 372,376 **** ASTheme.current().drawListWithRectInView(rect, this); if (m_showsFirstResponder) { ! ASTheme.current().drawFirstResponderWithRectInView(rect, this); } } --- 373,388 ---- ASTheme.current().drawListWithRectInView(rect, this); if (m_showsFirstResponder) { ! if (m_firstResponderClip == null || m_firstResponderClip._parent == undefined) { ! m_firstResponderClip = m_mcBounds.createEmptyMovieClip("m_firstResponderClip", MaxClipDepth - 10); ! m_firstResponderClip._x = 0; ! m_firstResponderClip._y = 0; ! } ! m_firstResponderClip.clear(); ! ASTheme.current().drawFirstResponderWithRectInClip(rect, m_firstResponderClip); ! } else { ! if (m_firstResponderClip != null) { ! m_firstResponderClip.removeMovieClip(); ! m_firstResponderClip = null; ! } } } |