answersLogoWhite

0

You can use any development system, C or otherwise, to write a text editor. The tool to create one, however, depends upon which environment you want it used under (command-line or graphical).

Assuming you're using the Win32API in one form or another, the CreateWindow() function can be used to create a multiline edit control using the following call:

hwndEdit = CreateWindowEx(0, L"EDIT", NULL,

WS_CHILD|WS_VISIBLE|WS_VSCROLL|ES_LEFT|

ES_MULTILINE|ES_AUTOVSCROLL,

x, y, width, height, hwndParent, 0, hInstance, NULL);

This gives you a control with some basic capabilities. Just supply the desired x,y location as well as the width and height. hwndParent is the parent window, and hInstance is the instance your program was given through the WinMain() entry point.

If you're using a modern IDE that allows you to generate forms, you can create a program fairly quickly. Keep in mind that most modern text editors include the following controls:

- a multiline edit box

- main menu (File, Edit, and sometimes Options and Help)

- convenient buttons below the main menu for file and edit operations

Clipboard operations such as copy, cut and paste are also common among text editors. These functions allow you to export and import text data from and to other programs as well as within the text editor.

As with any programming project, start out with the basics and keep adding features you want in the program. Always be sure to conduct bug testing regularly, particularly when you're loading and saving files. Using Notepad as a frame of reference for laying out your controls can come in handy. You may also find some C source code for text editors and base your own on that code.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is worldPad?

worldpad are text editer that are included with the window perating system.


Who is the editer in dragonfable wiki?

Butthead the goat


Who is the creator or editer of Answers.com?

i dont know the answer i was asking you


Who is editer of swhas film?

Film editing by:Neeraj Voralia


Sample text color in C language?

printf("%c[%d;%dmHello World%c[%dm\n",27,1,33,27,0);


How do you type a c in Spanish text?

Same as English, c.


What is the ctrl c shortcut?

Ctrl+C copys the selected text, to paste press Ctrl+V.


How do you get C?

To use c you need a text editor and a compiler such as gcc.


What is a video editer that's not a virus maker or a scam?

Video Spin or Video Pad.


What the equation for the action of pancreatin on a moleculeof tristearin?

The action of pancreatin on tristearin, a triglyceride composed of glycerol and three stearic acid molecules, involves hydrolysis, breaking it down into glycerol and free fatty acids. The general reaction can be represented as: [ \text{C}3\text{H}5(\text{C}{18}\text{H}{36}\text{O}_2)_3 + 3 \text{H}_2\text{O} \xrightarrow{\text{pancreatin}} \text{C}_3\text{H}5\text{(OH)}3 + 3 \text{C}{18}\text{H}{36}\text{O}_2 ] This equation illustrates the enzymatic action of pancreatin, which contains lipases that facilitate the breakdown of triglycerides into their constituent parts.


How do you create software in c?

All you need is a text editor and a C-compiler.


What has the author Timothy C Bell written?

Timothy C. Bell has written: 'Text compression' -- subject(s): Text processing (Computer science)