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.

326 Day 9<br />

WARNING<br />

When you add an object to the Object Repository, <strong>C++</strong>Builder makes<br />

an entry <strong>in</strong> the Object Repository file that describes the object. This<br />

<strong>in</strong>formation <strong>in</strong>cludes the pathname where the form and source file for<br />

the object are located. If you move or delete an object’s form or source<br />

file, you will not be able to use the object from the Object Repository.<br />

Add<strong>in</strong>g Projects to the Object Repository<br />

Add<strong>in</strong>g projects to the Object Repository is not much different from add<strong>in</strong>g <strong>in</strong>dividual<br />

forms. To add a project to the Object Repository, choose Project | Add To Repository from<br />

the ma<strong>in</strong> menu. The Add To Repository dialog box is displayed just like it is when you’re<br />

add<strong>in</strong>g objects to the Repository, except the Forms list box is not displayed. Fill <strong>in</strong> any<br />

required <strong>in</strong>formation (Title, Description, Author, and so on) and click OK, and the project<br />

is added to the Repository.<br />

After you are familiar with <strong>C++</strong>Builder, you should create an application shell that has the<br />

features you use most often <strong>in</strong> your applications. Each time you start a new standard<br />

application, make a copy of the shell from the Object Repository. This way you can have your<br />

menus, speedbar, About box, and other standard dialog boxes all set up and ready to go <strong>in</strong><br />

a matter of seconds. Once the new application has been created, it can then be modified as<br />

with any project. You can add new forms, delete any unwanted forms, and so on.<br />

Object Repository Housekeep<strong>in</strong>g<br />

You can manage the pages and objects <strong>in</strong> the Object Repository by us<strong>in</strong>g the Object<br />

Repository configuration dialog box.<br />

To view the Object Repository configuration dialog box, choose Options | Repository from<br />

the ma<strong>in</strong> menu or, if you have the Object Repository open, choose Properties from the Object<br />

Repository speed menu. The configuration dialog box is displayed, as shown <strong>in</strong> Figure 9.4.<br />

This dialog box allows you to delete objects and pages from the Object Repository, move<br />

objects from one page to another, change the order of pages <strong>in</strong> the Object Repository, and<br />

more. The list of pages <strong>in</strong> the Object Repository is displayed <strong>in</strong> the list box labeled Pages on<br />

the left side of the dialog box. When you select one of the pages <strong>in</strong> the Pages list, the list box<br />

on the right (labeled Objects) displays the objects conta<strong>in</strong>ed on that page.

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

Saved successfully!

Ooh no, something went wrong!