From: Richard K. <ric...@us...> - 2005-07-11 03:33:06
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31320 Modified Files: NSTextFieldCell.as Log Message: fix text colors Index: NSTextFieldCell.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSTextFieldCell.as,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** NSTextFieldCell.as 17 Jun 2005 22:15:34 -0000 1.16 --- NSTextFieldCell.as 11 Jul 2005 03:32:53 -0000 1.17 *************** *** 63,66 **** --- 63,67 ---- m_textField = null; m_textFormat = null; + m_textColor = NSColor.systemFontColor(); m_actionMask = NSEvent.NSKeyUpMask | NSEvent.NSKeyDownMask; } *************** *** 97,100 **** --- 98,102 ---- m_textField = m_controlView.createBoundsTextField(); m_textFormat = m_font.textFormatWithAlignment(m_alignment); + m_textFormat.color = m_textColor.value; m_textField.self = this; m_textField.text = stringValue(); *************** *** 137,140 **** --- 139,143 ---- public function setTextColor(value:NSColor) { m_textColor = value; + m_textFormat.color = m_textColor.value; if (m_controlView && (m_controlView instanceof NSControl)) { NSControl(m_controlView).updateCell(this); *************** *** 149,152 **** --- 152,156 ---- super.setFont(font); m_textFormat = m_font.textFormat(); + m_textFormat.color = m_textColor.value; if (m_textField != null) { m_textField.embedFonts = m_font.isEmbedded(); |