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.

234 Day 7<br />

2. Select the buttons by dragg<strong>in</strong>g a bound<strong>in</strong>g rectangle around them (or just touch<strong>in</strong>g<br />

them). The selection <strong>in</strong>dicators show that all of the buttons are selected. The form<br />

should now look someth<strong>in</strong>g like the one <strong>in</strong> Figure 7.11.<br />

3. Choose View | Alignment Palette from the ma<strong>in</strong> menu. The Alignment Palette is<br />

displayed. Move the Alignment Palette if necessary so that it does not obscure the<br />

form.<br />

4. Click the Align Left Edges button on the Alignment Palette. The buttons are all<br />

l<strong>in</strong>ed up.<br />

Figure 7.11.<br />

The form with the<br />

buttons randomly<br />

placed.<br />

See how easy that is? As long as we have the buttons selected, let’s look at another alignment<br />

option. The Space Equally Vertically alignment option can now be used to space the buttons<br />

evenly. The buttons should still be selected, so all you have to do is click the Space Equally<br />

Vertically button on the Alignment Palette, and voilà! the buttons are perfectly spaced. The<br />

form should now look like Figure 7.12.<br />

Figure 7.12.<br />

The form with the<br />

buttons aligned and<br />

equally spaced.<br />

NOTE<br />

The Space Equally Vertically alignment option will space the components<br />

equally between the first component <strong>in</strong> the column (the top<br />

component) and the last component <strong>in</strong> the column (the bottom

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

Saved successfully!

Ooh no, something went wrong!