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.

388 Day 10<br />

The Colors page is very easy to use. At the bottom of the page is a text w<strong>in</strong>dow that conta<strong>in</strong>s<br />

sample code. If you click on one of the key elements of the code, that element will be selected<br />

<strong>in</strong> the Elements list box, and its current sett<strong>in</strong>gs will be displayed on the Color grid. To change<br />

the foreground, background, and text attributes for that element, simply choose the sett<strong>in</strong>gs<br />

you like. For example, keywords are displayed <strong>in</strong> bold text with a black foreground and a<br />

white background (assum<strong>in</strong>g the Default color scheme). To change the keywords to green,<br />

bold text, click on the void keyword <strong>in</strong> the sample code w<strong>in</strong>dow and then change the<br />

foreground color to green. The text colors <strong>in</strong> the sample w<strong>in</strong>dow change to reflect the new<br />

color you have chosen. Cont<strong>in</strong>ue chang<strong>in</strong>g colors as desired until you have the example<br />

w<strong>in</strong>dow just the way you want it. When you click OK, the Code Editor will change to the<br />

new colors you have chosen.<br />

Summary<br />

Today was one of those days when you learned a lot about the k<strong>in</strong>ds of th<strong>in</strong>gs that often get<br />

overlooked. I hope you picked up some tips that you can use as you work with <strong>C++</strong>Builder<br />

projects and the <strong>C++</strong>Builder Code Editor. You also got an explanation of what some of the<br />

project and editor options are for. Even if it didn’t make much sense to you now, this chapter<br />

is someth<strong>in</strong>g you can refer to at a later date.<br />

Workshop<br />

The Workshop conta<strong>in</strong>s quiz questions to help you solidify your understand<strong>in</strong>g of the<br />

material covered and exercises to provide you with experience <strong>in</strong> us<strong>in</strong>g what you have learned.<br />

You can f<strong>in</strong>d answers to the quiz questions <strong>in</strong> Appendix A, “Answers to Quiz Questions.”<br />

Q&A<br />

Q When I use the Project Manager w<strong>in</strong>dow, the units <strong>in</strong> my project seem to<br />

alternate between bold and normal text. Why is that?<br />

A Any units that have changed and that have not yet been saved show up <strong>in</strong> bold text<br />

<strong>in</strong> the Project Manager w<strong>in</strong>dow. Units that are up-to-date (that do not need to be<br />

saved) are shown <strong>in</strong> normal text.<br />

Q Whenever I try to change the name of my project source code unit <strong>in</strong> the<br />

Project Explorer, it reverts back to its orig<strong>in</strong>al filename. Why is that?<br />

A You cannot change the filenames of source code units through the Project Explorer.<br />

You can only change those objects <strong>in</strong> the Project Explorer that have a Name<br />

property. In other words, you can only change the names of forms and components.<br />

To change a source code filename, choose File | Save As from the Code<br />

Editor ma<strong>in</strong> menu.

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

Saved successfully!

Ooh no, something went wrong!