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.

262 Day 7<br />

After you have the menu created, choose Save As Template from the Menu Designer’s speed<br />

menu. The Save Template dialog box is displayed. Give the menu a mean<strong>in</strong>gful name and<br />

click the OK button, and the menu is saved as a template. To <strong>in</strong>sert the menu, choose Insert<br />

From Template from the Menu Designer’s speed menu just as you did earlier. Any menus<br />

you have created will show up along with <strong>C++</strong>Builder’s prebuilt templates.<br />

To remove a template that you have previously created, choose Delete Templates from the<br />

Menu Designer’s speed menu. The Delete Templates dialog box is displayed, and you can<br />

choose the templates you want to delete. When you click the OK button, the selected menu<br />

templates will be deleted. Press Cancel to close the dialog box without delet<strong>in</strong>g any templates.<br />

Summary<br />

Congratulations! You have just covered the bulk of the visual programm<strong>in</strong>g features of<br />

<strong>C++</strong>Builder. Hopefully it was enjoyable for you as well as educational. The Form Designer<br />

is a powerful tool that allows you to do as much of your programm<strong>in</strong>g as possible visually.<br />

If you haven’t had to place controls on a w<strong>in</strong>dow <strong>in</strong> C or <strong>C++</strong>, you may not fully appreciate<br />

this advantage. Trust me, it’s significant. The Menu Designer is also a powerful tool,<br />

particularly because of the capability to import menus, which makes menu creation easy and<br />

actually fun with <strong>C++</strong>Builder. The Menu Designer also makes updat<strong>in</strong>g exist<strong>in</strong>g menus a<br />

snap.<br />

Workshop<br />

The Workshop conta<strong>in</strong>s quiz questions to help you solidify your understand<strong>in</strong>g of the<br />

material covered and exercises to provide you with experience <strong>in</strong> us<strong>in</strong>g what you have learned.<br />

You can f<strong>in</strong>d answers to the quiz questions <strong>in</strong> Appendix A, “Answers to Quiz Questions.”<br />

Q&A<br />

Q I’m us<strong>in</strong>g the Alignment Palette a lot, and every time I switch from the Code<br />

Editor back to the Form Designer, the Alignment Palette gets lost somewhere.<br />

Is there anyth<strong>in</strong>g I can do about that?<br />

A Locate the Alignment Palette (it’s there somewhere!) and click your secondary<br />

mouse button to br<strong>in</strong>g up the Alignment Palette’s speed menu. Choose the Stay on<br />

Top item from the speed menu. Now the Alignment Palette will always be on top<br />

where you can f<strong>in</strong>d it.

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

Saved successfully!

Ooh no, something went wrong!