12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NOTE<br />

More on Projects<br />

If you open a source file (.cpp) that is the source code unit for a form,<br />

<strong>C++</strong>Builder will open the source file <strong>in</strong> the Code Editor and will also<br />

open the form <strong>in</strong> the Form Designer.<br />

You can open multiple files at one time. To open multiple files, choose the files you want to<br />

open <strong>in</strong> the Open dialog box and click OK. Each file selected will be loaded, and a tab for<br />

each file will be placed at the top of the editor w<strong>in</strong>dow.<br />

TIP<br />

You can also use drag-and-drop to open files. For <strong>in</strong>stance, you can<br />

choose a file (or a group of files) <strong>in</strong> Explorer, drag it onto the Code<br />

Editor, and drop it. The file will be opened <strong>in</strong> the Code Editor.<br />

To save a file, choose File | Save or File | Save As from the ma<strong>in</strong> menu or type Ctrl+S on the<br />

keyboard. If the file has not been previously saved, the Save As dialog box will appear, and<br />

you can enter a filename at that time.<br />

Highlight<strong>in</strong>g Text<br />

Although text highlight<strong>in</strong>g is basic text editor stuff, I thought it wouldn’t hurt to rem<strong>in</strong>d you<br />

of a couple basic highlight<strong>in</strong>g techniques you can use <strong>in</strong> the <strong>C++</strong>Builder Code Editor.<br />

To highlight a short block of text, you can use the mouse to drag across any text you want<br />

to highlight. After you’ve selected the text, you can cut, copy, or paste as needed. To highlight<br />

longer blocks of code, you can use the click+Shift+click method. First, click at the beg<strong>in</strong>n<strong>in</strong>g<br />

of the block you want to highlight. Next, hold the Shift key on the keyboard, and then click<br />

aga<strong>in</strong> at the end of the block. All text between the start<strong>in</strong>g po<strong>in</strong>t and the end<strong>in</strong>g po<strong>in</strong>t is<br />

highlighted.<br />

Another useful feature is the capability to quickly select an <strong>in</strong>dividual word. To select a<br />

keyword, function name, or variable, just double-click on the word. Now you can perform<br />

any edit<strong>in</strong>g operations you want with the highlighted word.<br />

377<br />

10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!