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.

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

to be the default ma<strong>in</strong> form when a new application is created. Select the form from the<br />

Objects list box and click the Ma<strong>in</strong> Form check box at the bottom of the screen. When you<br />

click OK, that form will now be the default. Similarly, if you have a project that you want<br />

to be the default project, first locate it <strong>in</strong> the Object Repository configuration dialog box, click<br />

on it, and then check the New Project check box. From that po<strong>in</strong>t on, when you choose<br />

File | New Application from the ma<strong>in</strong> menu, the project you set as the default will appear.<br />

Build<strong>in</strong>g Forms and Applications<br />

with the Wizards<br />

NOTE<br />

<strong>C++</strong>Builder has two built-<strong>in</strong> wizards designed to guide you through the application-creation<br />

process. The Dialog Wizard aids you <strong>in</strong> creat<strong>in</strong>g dialog boxes, and the Application Wizard<br />

helps you create the basic layout of an application.<br />

<strong>C++</strong>Builder has a couple other dialog boxes that it calls wizards.<br />

Choos<strong>in</strong>g a new component from the Object Repository, for <strong>in</strong>stance,<br />

results <strong>in</strong> a dialog box that asks you for <strong>in</strong>formation regard<strong>in</strong>g the new<br />

component. Because that’s the extent of the “wizard,” I hesitate to<br />

group that type of Wizard with the Dialog Wizard and the Application<br />

Wizard.<br />

Now let’s see what the <strong>in</strong>dividual wizards do.<br />

The Dialog Wizard<br />

Truthfully, there isn’t very much for a dialog box wizard to do because dialog boxes of any<br />

real value will have to be customized with the Form Designer. The Dialog Wizard is started<br />

from the Object Repository. First, choose File | New from the ma<strong>in</strong> menu to display the<br />

Object Repository. Next, switch to the Dialogs page and then double-click the Dialog<br />

Wizard icon. The Dialog Wizard is displayed, as shown <strong>in</strong> Figure 9.5.<br />

Figure 9.5.<br />

The Dialog Wizard.<br />

329<br />

9

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

Saved successfully!

Ooh no, something went wrong!