Text Editor Source Code
-
Hello everyone. I am a very new member to this forum, and also very new to Windows programming. I am challenging myself to building my own text editor. However, I don’t know where to start. So, I am looking for a source code for a simple text editor with functions like “Open, Save, Save As, Copy, Cut, Paste, About.” I don’t think any text editor in the world lacks these very basic functions. On that basic structure I plan to build and develop. I’d appreciate every bit of help in this matter because I am a very new programmer and I am barely scratching the surface. I am not completely sure that I am even posting my request in the correct forum on this site, but I use Visual C++ 6.0 to do the little Windows Programming I know how to do. So, I figured I’d post my request here. I appreciate your kindness in advance :)
-
Hello everyone. I am a very new member to this forum, and also very new to Windows programming. I am challenging myself to building my own text editor. However, I don’t know where to start. So, I am looking for a source code for a simple text editor with functions like “Open, Save, Save As, Copy, Cut, Paste, About.” I don’t think any text editor in the world lacks these very basic functions. On that basic structure I plan to build and develop. I’d appreciate every bit of help in this matter because I am a very new programmer and I am barely scratching the surface. I am not completely sure that I am even posting my request in the correct forum on this site, but I use Visual C++ 6.0 to do the little Windows Programming I know how to do. So, I figured I’d post my request here. I appreciate your kindness in advance :)
depends how deep you want to make your own text editor; do you want to handle everything ( drawing the words, handle keyboard event, ... ) or simply have a simple text editor. for the former, I would consider learning a lot of C++/Win32/MFC programming before, it's a big task. if it's the later, have a look at CRichEditCtrl which IS a MFC text editor control ( with basic functionality ); you simply create a MDI ( or SDI ) with a CRichEditView ( or something like that ) as the view type ( from the new project wizard ). after that, you have to handle the save, load, ... fonts and color, and other stuff. There are a lot of exmaple on this site, search for them.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
Hello everyone. I am a very new member to this forum, and also very new to Windows programming. I am challenging myself to building my own text editor. However, I don’t know where to start. So, I am looking for a source code for a simple text editor with functions like “Open, Save, Save As, Copy, Cut, Paste, About.” I don’t think any text editor in the world lacks these very basic functions. On that basic structure I plan to build and develop. I’d appreciate every bit of help in this matter because I am a very new programmer and I am barely scratching the surface. I am not completely sure that I am even posting my request in the correct forum on this site, but I use Visual C++ 6.0 to do the little Windows Programming I know how to do. So, I figured I’d post my request here. I appreciate your kindness in advance :)
I would really suggest you read this entire tutorial: http://winprog.org/tutorial/ But what you really need are these two pages: http://winprog.org/tutorial/app\_two.html and http://winprog.org/tutorial/app\_three.html wWw.KruncherInc.cOm
-
Hello everyone. I am a very new member to this forum, and also very new to Windows programming. I am challenging myself to building my own text editor. However, I don’t know where to start. So, I am looking for a source code for a simple text editor with functions like “Open, Save, Save As, Copy, Cut, Paste, About.” I don’t think any text editor in the world lacks these very basic functions. On that basic structure I plan to build and develop. I’d appreciate every bit of help in this matter because I am a very new programmer and I am barely scratching the surface. I am not completely sure that I am even posting my request in the correct forum on this site, but I use Visual C++ 6.0 to do the little Windows Programming I know how to do. So, I figured I’d post my request here. I appreciate your kindness in advance :)
I would suggest looking at the articles at http://www.codeproject.com/editctrl/[^] Start by hacking the windows edit control and getting a feel for how Windows implements an edit control. Don't concern yourself with Open, Save, Save As commands as of yet...those are easy to add once you have an basic control built. Maybe not so much Copy, Paste, but i'd first get the caret moving about and inserting, deleteing characters down and bug free first. Cheers :) It's frustrating being a genius and living the life of a moron!!!