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.

330 Day 9<br />

You can choose to create a s<strong>in</strong>gle-page dialog box or a tabbed (multipage) dialog box. The<br />

icon on the left side of the dialog box shows you what the dialog box will look like at each<br />

step. If you choose to create a s<strong>in</strong>gle-page dialog box, when you click the Next button you<br />

will see the next page of the Dialog Wizard (see Figure 9.6).<br />

Figure 9.6.<br />

The second page of the<br />

Dialog Wizard.<br />

Figure 9.7.<br />

The Dialog Wizard<br />

creat<strong>in</strong>g a tabbed<br />

dialog box.<br />

NOTE<br />

This page allows you to choose whether you want buttons on the dialog box and, if so,<br />

whether you want them on the right side or the bottom of the dialog box. As you can see from<br />

Figure 9.6 (see the F<strong>in</strong>ish button?), this is the last page of the Dialog Wizard when you’re<br />

creat<strong>in</strong>g a s<strong>in</strong>gle-page dialog box. After choos<strong>in</strong>g the button layout you want, click the F<strong>in</strong>ish<br />

button to have <strong>C++</strong>Builder create the dialog box for you.<br />

The new dialog box is displayed on the Form Designer, complete with the features you chose<br />

through the wizard. It also has its BorderStyle property set to bsDialog, which is customary<br />

for forms used as dialog boxes. Once the Dialog Wizard has created the basic dialog box, you<br />

can go to work with the Form Designer to add functionality to the dialog box.<br />

If you choose to create a tabbed dialog box, the second page of the dialog box looks like the<br />

one <strong>in</strong> Figure 9.7.<br />

This page has a multil<strong>in</strong>e edit control where you can enter the names of the <strong>in</strong>dividual tabs<br />

you want to see on the dialog box. Enter the text for each tab on a separate l<strong>in</strong>e, as illustrated<br />

<strong>in</strong> Figure 9.7. When you click the Next button, you will see the last page of the Dialog Wizard<br />

as you saw <strong>in</strong> Figure 9.6. Choose the location of the buttons, if any, and click the F<strong>in</strong>ish<br />

button to have <strong>C++</strong>Builder create the tabbed dialog box.<br />

The Dialog Wizard is most useful when you’re creat<strong>in</strong>g tabbed dialog<br />

boxes. When you’re creat<strong>in</strong>g s<strong>in</strong>gle-page dialog boxes, it is easier to

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

Saved successfully!

Ooh no, something went wrong!