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.


What is the answer to 7c 3 fl oz - 3c 4fl oz?

To solve the problem (7\text{c} , 3\text{fl oz} - 3\text{c} , 4\text{fl oz}), first convert the measurements to a common unit. This can be done by converting the fluid ounces into cups (since 1 cup = 8 fl oz): (3 \text{ fl oz} = \frac{3}{8} \text{c}) and (4 \text{ fl oz} = \frac{4}{8} \text{c} = \frac{1}{2} \text{c}). Now, the equation becomes (7\text{c} + \frac{3}{8}\text{c} - 3\text{c} - \frac{1}{2}\text{c}). Combining these gives (4\text{c} + \frac{3}{8}\text{c} - \frac{4}{8}\text{c} = 4\text{c} - \frac{1}{8}\text{c} = \frac{32}{8}\text{c} - \frac{1}{8}\text{c} = \frac{31}{8}\text{c}), resulting in (3 \text{c} , 7.5 \text{fl oz}) after converting back to cups and fluid ounces.


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


How do you calculate final concentration?

To calculate the final concentration of a solution, you can use the formula: [ \text{C}_1 \times \text{V}_1 = \text{C}_2 \times \text{V}_2 ] where ( \text{C}_1 ) is the initial concentration, ( \text{V}_1 ) is the initial volume, ( \text{C}_2 ) is the final concentration, and ( \text{V}_2 ) is the final volume. If you know the initial concentration and volume and the final volume, you can rearrange the formula to solve for ( \text{C}_2 ): [ \text{C}_2 = \frac{\text{C}_1 \times \text{V}_1}{\text{V}_2} ].


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 many calories are required to heat 863 g of water from 19C to 88C?

To calculate the calories required to heat 863 g of water from 19°C to 88°C, you can use the formula: [ \text{Calories} = \text{mass (g)} \times \text{specific heat (cal/g°C)} \times \text{temperature change (°C)} ] The specific heat of water is approximately 1 cal/g°C. The temperature change is (88°C - 19°C = 69°C). Thus, the calculation is: [ 863 , \text{g} \times 1 , \text{cal/g°C} \times 69 , \text{°C} = 59,607 , \text{calories} ] Therefore, 59,607 calories are required to heat the water.


What is the equation for the conversion of ethylbenzene to phenylethene?

The conversion of ethylbenzene to phenylethene involves the elimination of hydrogen gas (dehydrogenation) from ethylbenzene. The reaction can be represented by the equation: [ \text{C}_6\text{H}_5\text{C}_2\text{H}_5 \rightarrow \text{C}_6\text{H}_5\text{C}_2\text{H} + \text{H}_2 ] In this equation, ethylbenzene (C6H5C2H5) is converted to phenylethene (C6H5C2H) by removing a hydrogen molecule (H2).


What is the mole ratio of c5h12 to h2 in the following reaction c5h12 c5h8 2h2?

In the given reaction, ( \text{C}5\text{H}{12} ) is converted to ( \text{C}_5\text{H}_8 ) with the production of ( 2 , \text{H}_2 ). The balanced equation shows that 1 mole of ( \text{C}5\text{H}{12} ) produces 2 moles of ( \text{H}_2 ). Therefore, the mole ratio of ( \text{C}5\text{H}{12} ) to ( \text{H}_2 ) is 1:2.


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.