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.

6<br />

206 Day 6<br />

Figure 6.15.<br />

The Menu Editor<br />

with the Insert<br />

Template dialog box<br />

open.<br />

Now you should be back to the ma<strong>in</strong> form. Notice that you have a menu on the form. You<br />

can click on the top-level items to see the full menu. Don’t click on any menu subitems at<br />

this po<strong>in</strong>t—we’ll do that <strong>in</strong> a m<strong>in</strong>ute. Notice that there are a lot of menu items. For now we’ll<br />

just leave the extra items where they are.<br />

Now we need to prepare the File Open and File Save dialog boxes:<br />

1. Click on the Dialogs tab on the Component Palette. Choose an OpenDialog<br />

component and place it on the form. The OpenDialog component’s icon can be<br />

placed anywhere on the form.<br />

2. Change the Name property of the open dialog box to OpenDialog.<br />

3. Change the Title property to Open a Picture for View<strong>in</strong>g.<br />

4. Add a SaveDialog component.<br />

5. Change the Name property of the component to SaveDialog and the Title property<br />

to Save a Picture.<br />

Your form should now look like the one <strong>in</strong> Figure 6.16.<br />

Figure 6.16.<br />

The form up to this<br />

po<strong>in</strong>t.

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

Saved successfully!

Ooh no, something went wrong!