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.

248 Day 7<br />

NOTE<br />

The Menu Designer always provides a blank menu item at the bottom<br />

of each pop-up menu and on the right side of the menu bar. You<br />

cannot delete these blank items, but there’s no need to—they are only<br />

used <strong>in</strong> the Menu Designer and won’t show on the menu when your<br />

program runs.<br />

Now that the File menu is done, we need to create an Edit menu and a Help menu.<br />

Insert<strong>in</strong>g a Menu from a Template<br />

This time we’ll take the easy approach. First, click on the blank pop-up menu placeholder<br />

to the right of the File menu. Now click your secondary mouse button and choose Insert<br />

From Template from the speed menu. The Insert Template dialog box is displayed, as shown<br />

<strong>in</strong> Figure 7.21.<br />

Figure 7.21.<br />

The Insert Template<br />

dialog box.<br />

This dialog box shows a list of templates from which you can choose. You can use the<br />

predef<strong>in</strong>ed templates or create your own. In this case, we are only <strong>in</strong>terested <strong>in</strong> add<strong>in</strong>g an Edit<br />

menu, so choose Edit Menu and click OK. A full Edit menu is immediately <strong>in</strong>serted <strong>in</strong>to the<br />

Menu Designer. In fact, it’s a little too full. We’ll deal with that <strong>in</strong> a moment.<br />

As long as we’re here, let’s add the Help menu, too. Click on the placeholder to the right of<br />

the Edit menu. Choose Insert From Template aga<strong>in</strong>, and this time <strong>in</strong>sert a Help menu.<br />

(Don’t choose the Expanded Help menu, though.) We’ll tidy up both the Edit and Help<br />

menus <strong>in</strong> the next section. Notice that the ma<strong>in</strong> form has been updat<strong>in</strong>g to show the new<br />

menu items as they are placed.<br />

NOTE<br />

You can <strong>in</strong>sert templates to create pop-up menus as easily as you can<br />

when creat<strong>in</strong>g ma<strong>in</strong> menu items.

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

Saved successfully!

Ooh no, something went wrong!