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.

360 Day 10<br />

The Project Explorer shows all of your project’s source units, forms, and components <strong>in</strong> a tree<br />

view. Nodes can be contracted or expanded to reveal more details. Each component is listed<br />

under its parent. For example, notice the SpeedBar node <strong>in</strong> Figure 10.4. In this project, the<br />

SpeedBar node is a Panel component that conta<strong>in</strong>s several speed buttons. The speed buttons<br />

are displayed underneath the panel to show that the panel is the parent of the speed buttons.<br />

The Project Explorer is a hierarchical w<strong>in</strong>dow. At the top of the Project Explorer you<br />

have the project file; under the project file you have the project’s source units. Immediately<br />

under the project source file is the form file for that unit. Under the form file you have all the<br />

components that are direct children of the form. If a component on the form has children,<br />

they are listed under their parent, and so on. Figure 10.5 shows how the Project Explorer<br />

would look if the component and unit names were replaced with descriptive text.<br />

Figure 10.5.<br />

The Project Explorer<br />

hierarchy.<br />

When you click on an item <strong>in</strong> the Project Explorer, the status bar at the bottom of the Project<br />

Explorer w<strong>in</strong>dow shows <strong>in</strong>formation about the item selected. If the item is a source file or<br />

form file, the status bar displays the full path and filename of the file. If the item is a<br />

component, the status bar displays the class name of the component. For example, if you click<br />

a speed button component, the Project Explorer status bar will display TSpeedButton.<br />

Project Explorer Commands<br />

You can do more than just view your objects <strong>in</strong> the Project Explorer. The Project Explorer<br />

has a speed menu that allows you to delete, rename, edit, or select an item. Not all speed menu<br />

items are available at all times, however. If you have selected a unit’s source file, for example,<br />

the Rename speed menu item is disabled because you cannot rename a source file from the<br />

Project Explorer. Let’s look at the Project Explorer commands <strong>in</strong>dividually.<br />

Select<br />

The Select menu item selects the current object and displays the object <strong>in</strong> the Object<br />

Inspector. The effect is the same as if you had selected the object <strong>in</strong> the Form Designer. If<br />

you place the Object Inspector and Project Explorer side by side, you can quickly go through<br />

all the objects <strong>in</strong> your project and view their properties. This command is available only if<br />

you have selected a form or a control.

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

Saved successfully!

Ooh no, something went wrong!