[GME-commit] GMESRC/GME/Console Console.vcproj,1.1,1.2 ScriptEdit.cpp,1.3,1.4 ScriptEdit.h,1.4,1.5

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Wed Aug 23 19:37:55 CDT 2006


Update of /project/gme-repository/GMESRC/GME/Console
In directory escher:/tmp/cvs-serv5769

Modified Files:
	Console.vcproj ScriptEdit.cpp ScriptEdit.h 
Log Message:
User is attracted by ">" to console.


CVS User: Zoltan Molnar, ISIS (zolmol)

Index: Console.vcproj
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Console/Console.vcproj,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Console.vcproj	26 Jan 2005 17:28:21 -0000	1.1
--- Console.vcproj	23 Aug 2006 18:37:52 -0000	1.2
***************
*** 458,461 ****
--- 458,464 ----
  	</Files>
  	<Globals>
+ 		<Global
+ 			Name="RESOURCE_FILE"
+ 			Value="Console.rc"/>
  	</Globals>
  </VisualStudioProject>

Index: ScriptEdit.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Console/ScriptEdit.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ScriptEdit.cpp	19 Jul 2005 17:48:28 -0000	1.3
--- ScriptEdit.cpp	23 Aug 2006 18:37:52 -0000	1.4
***************
*** 8,11 ****
--- 8,12 ----
  #include "MgaUtil.h"
  #include "GME.h"
+ #include ".\scriptedit.h"
  //////////////////////////////////////////////////////////////////////
  // Construction/Destruction
***************
*** 14,17 ****
--- 15,20 ----
  	//{{AFX_MSG_MAP(CHtmlCtrl)
  	ON_WM_KEYUP()
+ 	ON_CONTROL_REFLECT(EN_KILLFOCUS, OnEnKillfocus)
+ 	ON_CONTROL_REFLECT(EN_SETFOCUS, OnEnSetfocus)
  	//}}AFX_MSG_MAP
  END_MESSAGE_MAP()
***************
*** 36,39 ****
--- 39,44 ----
  		_bstr_t engine("JScript");
  		COMTHROW(m_host->InitEngine((void*)m_console, engine));
+ 		this->LimitText( 256);
+ 		this->SetWindowText( ">"); // to attract user attention
  	}
  	catch(hresult_exception &e) 
***************
*** 159,161 ****
--- 164,176 ----
  		m_console->Message((LPCTSTR)s, MSG_ERROR);
  	}
+ }
+ 
+ void CScriptEdit::OnEnKillfocus()
+ {
+ 	this->SetWindowText( ">"); // to attract user attention
+ }
+ 
+ void CScriptEdit::OnEnSetfocus()
+ {
+ 	this->SetWindowText( ""); // when it has start typing remove '>'
  }

Index: ScriptEdit.h
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Console/ScriptEdit.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ScriptEdit.h	15 Apr 2005 18:24:10 -0000	1.4
--- ScriptEdit.h	23 Aug 2006 18:37:52 -0000	1.5
***************
*** 38,41 ****
--- 38,44 ----
  	afx_msg void OnKeyUp( UINT nChar, UINT nRepCnt, UINT nFlags );
  
+ public:
+ 	afx_msg void OnEnKillfocus();
+ 	afx_msg void OnEnSetfocus();
  };
  



More information about the GME-commit mailing list