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 />

NOTE<br />

Creat<strong>in</strong>g Applications <strong>in</strong> <strong>C++</strong>Builder<br />

The Forms list box on the left side of this dialog box lists the current forms as well as any other<br />

objects <strong>in</strong> the application (such as data modules). First, select the form that you want to add<br />

to the Object Repository.<br />

The active form <strong>in</strong> the Form Designer will already be selected <strong>in</strong> the<br />

Forms list box <strong>in</strong> the Add To Repository dialog box.<br />

Now enter the object’s title. This is the title that will appear below the icon <strong>in</strong> the Object<br />

Repository. The Description field is used to give further <strong>in</strong>formation about the object. This<br />

description is displayed when the Object Repository view is set to display all object details<br />

(refer back to Figure 9.2). The Author field is where you type your name as the author of the<br />

object. You can enter your personal name, a company name, or any other identify<strong>in</strong>g name.<br />

The prebuilt objects <strong>in</strong> the Object Repository that come with<br />

<strong>C++</strong>Builder have “<strong>Borland</strong>” as the author name.<br />

The Page field is used to select the Object Repository page where the new object will be<br />

placed. You can choose from one of the exist<strong>in</strong>g pages or simply type <strong>in</strong> the name of a new<br />

page <strong>in</strong> the Page field. If a page with the name you type does not exist, <strong>C++</strong>Builder will create<br />

a new page with that name. Near the bottom of the dialog box is a button labeled Browse that<br />

you can use to select the icon used to represent the object.<br />

TIP<br />

You can choose icons from the CBuilder\Images\Icons directory or the<br />

CBuilder\Objrepos directory. The icons <strong>in</strong> the Cbuilder\Objrepos<br />

directory are the icons used by <strong>C++</strong>Builder for the items it places <strong>in</strong> the<br />

Object Repository.<br />

Once you’ve filled <strong>in</strong> all the fields and selected an icon, you can click OK to add the object<br />

to the Repository. The object is added to the Object Repository on the page you specified.<br />

You can now reuse that object any time you want. As you can see, add<strong>in</strong>g an object to the<br />

Object Repository is nearly as easy as us<strong>in</strong>g an object.<br />

325<br />

9

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

Saved successfully!

Ooh no, something went wrong!