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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NOTE<br />

The <strong>C++</strong>Builder IDE Explored: Projects and Forms<br />

When do<strong>in</strong>g a technical book, a nasty situation often arises. I want to<br />

use mean<strong>in</strong>gful examples to re<strong>in</strong>force the presentation of <strong>in</strong>formation.<br />

In order to complete those examples, I have to use techniques or<br />

methods that I haven’t talked about yet. But I can’t talk about those<br />

methods until I’ve given you some good, mean<strong>in</strong>gful examples. But I<br />

can’t… well, you see my dilemma. So I’m go<strong>in</strong>g to digress a little here<br />

and talk about the ma<strong>in</strong> menu, toolbar, and Component Palette. As<br />

you read this section, remember that we’re off on a tangent.<br />

The <strong>C++</strong>Builder Ma<strong>in</strong> Menu and Toolbar<br />

The <strong>C++</strong>Builder ma<strong>in</strong> menu has all the choices necessary to make <strong>C++</strong>Builder work. Because<br />

programm<strong>in</strong>g <strong>in</strong> <strong>C++</strong>Builder is a highly visual operation, you may not use the ma<strong>in</strong> menu<br />

as much as you might <strong>in</strong> other programm<strong>in</strong>g environments. Still, just about anyth<strong>in</strong>g you<br />

need is available from the ma<strong>in</strong> menu if you prefer to work that way. I’m not go<strong>in</strong>g to go over<br />

every item on the ma<strong>in</strong> menu here because you will encounter each item as you work through<br />

the next several chapters.<br />

The <strong>C++</strong>Builder toolbar is a convenient way of accomplish<strong>in</strong>g often-repeated tasks. A button<br />

is easier to locate than a menu item, not to mention that it requires less mouse movement.<br />

The <strong>C++</strong>Builder toolbar’s default configuration is illustrated <strong>in</strong> Figure 6.3.<br />

Figure 6.3.<br />

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

toolbar.<br />

Add to Project<br />

Save All<br />

Open Project<br />

Open File<br />

Save<br />

File<br />

Remove<br />

from<br />

Project<br />

Select Unit Select Form Run<br />

Toggle<br />

Unit/Form<br />

New<br />

Form<br />

Trace<br />

Into<br />

Pause<br />

Step<br />

Over<br />

If you are like me, you often forget to use the toolbar. But I’m tell<strong>in</strong>g you: Don’t forget to<br />

learn to use the toolbar. As the old say<strong>in</strong>g goes, “Do as I say, not as I do.” If you take the time<br />

to learn the toolbar, it will save you time and make you more efficient <strong>in</strong> the long run. One<br />

of the reasons you bought <strong>C++</strong>Builder was to produce W<strong>in</strong>dows applications quickly, so you<br />

might as well make the most of it.<br />

175<br />

6

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

Saved successfully!

Ooh no, something went wrong!