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.

More on Projects<br />

The <strong>C++</strong>Builder Code Editor<br />

There is no question that <strong>C++</strong>Builder is highly visual <strong>in</strong> nature. That’s one of the great th<strong>in</strong>gs<br />

about programm<strong>in</strong>g with it. Still, any program of any significance will have a great deal of<br />

code that must be written by hand. After you get the user <strong>in</strong>terface part of your application<br />

written with <strong>C++</strong>Builder’s impressive visual tools, you’ll likely spend a long stretch with the<br />

<strong>C++</strong>Builder Code Editor. The Code Editor has some features you’ll learn to appreciate once<br />

you discover them.<br />

In this section you will learn about<br />

NOTE<br />

■ Basic editor operations<br />

■ Specialized editor features<br />

■ The Code Editor speed menu<br />

■ Chang<strong>in</strong>g the editor options<br />

The <strong>C++</strong>Builder Code Editor allows you to choose from four<br />

keyboard-mapp<strong>in</strong>g configurations: Default, IDE Classic, BRIEF, and<br />

Epsilon. The rest of this chapter assumes Default keyboard mapp<strong>in</strong>g.<br />

If you are already familiar with one of the other keyboard-mapp<strong>in</strong>g<br />

configurations, you can ignore any references to specific keystrokes.<br />

Basic Editor Operations<br />

NOTE<br />

I’m go<strong>in</strong>g to assume that you know enough to be able to enter and delete text; highlight text<br />

with the mouse; cut, copy, and paste; and so on. I won’t spend any time go<strong>in</strong>g over th<strong>in</strong>gs<br />

at that level.<br />

If you have a lot of time <strong>in</strong> the pilot’s seat writ<strong>in</strong>g code, you may be a<br />

heavy keyboard user. If that is the case, you will likely use the keyboard<br />

shortcuts for simple th<strong>in</strong>gs like cutt<strong>in</strong>g, copy<strong>in</strong>g, and past<strong>in</strong>g. If you are<br />

not as experienced with the keyboard (or you just prefer us<strong>in</strong>g the<br />

mouse), you may want to customize your <strong>C++</strong>Builder speedbar to add<br />

speed buttons for operations like cutt<strong>in</strong>g, copy<strong>in</strong>g, and past<strong>in</strong>g.<br />

Whichever method you choose, you will probably get lots of practice—<br />

if you are anyth<strong>in</strong>g like me, you will do a lot of cut, copy, and paste<br />

while writ<strong>in</strong>g your programs.<br />

375<br />

10

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

Saved successfully!

Ooh no, something went wrong!