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.

Work<strong>in</strong>g with the Form Designer and the Menu Designer<br />

To illustrate, first start with a blank form and then perform the follow<strong>in</strong>g steps:<br />

1. Place three button components anywhere on the form. They will automatically be<br />

labeled Button1, Button2, and Button3.<br />

2. Click Button1. The black siz<strong>in</strong>g rectangles are placed around the component.<br />

3. Press and hold the Shift key on the keyboard. Click Button2. It is added to the<br />

selection. Gray boxes now appear at the corners of both Button1 and Button2.<br />

4. Shift+click on Button3. Now all three buttons are part of the selection.<br />

5. Shift+click aga<strong>in</strong> on Button2. Button2 is removed from the selection (the gray<br />

boxes disappear), but Button1 and Button3 are still <strong>in</strong> the selection.<br />

6. Shift+click on Button1. Now Button3 is the only component <strong>in</strong> the selection. The<br />

gray boxes are replaced with the black siz<strong>in</strong>g rectangles.<br />

7. Shift+click on Button1 and Button2. All three buttons are now part of the selection<br />

aga<strong>in</strong>.<br />

Figure 7.2 shows the form as it should look at the end of this sequence. Keep <strong>in</strong> m<strong>in</strong>d that<br />

your buttons could have been placed anywhere on the form.<br />

Figure 7.2.<br />

A form with three<br />

buttons selected.<br />

NOTE<br />

Keep the form handy because you’ll use it aga<strong>in</strong> <strong>in</strong> the next exercise.<br />

If you click on a component that is part of a group selection, noth<strong>in</strong>g<br />

will happen. In order to select a s<strong>in</strong>gle control that is currently part of a<br />

group selection, you need to first click on the form’s background or<br />

press the Esc key to remove the group selection. Then you can click on<br />

the <strong>in</strong>dividual control you want to select.<br />

223<br />

7

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

Saved successfully!

Ooh no, something went wrong!