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.

6<br />

216 Day 6<br />

Exercises<br />

1. Remove the Pause, Step Over, and Trace Into buttons from the toolbar. Add Cut,<br />

Copy, and Paste buttons to the toolbar.<br />

2. Reset the toolbar to its default sett<strong>in</strong>gs.<br />

3. Spend some time look<strong>in</strong>g over the components on each page of the Component<br />

Palette. Place any components you are curious about on a form and experiment<br />

with them.<br />

4. Create a new directory on your hard drive. Create a new application <strong>in</strong><br />

<strong>C++</strong>Builder. Add three new forms to the project (they can be blank if you want).<br />

Save the project to the new directory you created and run the program. Close the<br />

program. Now exam<strong>in</strong>e the directory where the project was saved. Compare the<br />

files you see there with the file types listed <strong>in</strong> Table 6.1.<br />

5. Run the Picture Viewer program you created earlier. Open several graphics files.<br />

Drag the MDI child w<strong>in</strong>dows around <strong>in</strong> the parent w<strong>in</strong>dow. Attempt to move a<br />

child w<strong>in</strong>dow outside of the parent. What happens?<br />

6. With the Picture Viewer program still runn<strong>in</strong>g, m<strong>in</strong>imize all w<strong>in</strong>dows. Drag the<br />

m<strong>in</strong>imized w<strong>in</strong>dows to random locations on the screen and then choose<br />

W<strong>in</strong>dow | Arrange All from the menu.<br />

7. Start a new application. Place several components on the form. Click on each<br />

component and observe the properties for each component <strong>in</strong> the Object Inspector.<br />

8. Create a blank form. Double-click <strong>in</strong> the Value column next to the Color property<br />

to <strong>in</strong>voke the Color dialog box. Choose a color and click OK.<br />

9. Get some rest. Tomorrow is go<strong>in</strong>g to be a big day.

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

Saved successfully!

Ooh no, something went wrong!