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.

232 Day 7<br />

components the width of the shortest edit component, or Grow to Largest to make all the<br />

components the width of the longest component <strong>in</strong> the group. You could also enter an exact<br />

width <strong>in</strong> the Width box, <strong>in</strong> which case you would leave the Height set on No Change. When<br />

you click OK, the components will all be the same width.<br />

TIP<br />

The Size dialog box can also be <strong>in</strong>voked from the Form Designer speed<br />

menu.<br />

Siz<strong>in</strong>g with the Scale Dialog Box<br />

Another siz<strong>in</strong>g tool is the Scale dialog box, shown <strong>in</strong> Figure 7.9. This dialog box allows you<br />

to specify a scal<strong>in</strong>g percentage. To make the components twice as large as they currently are,<br />

enter 200 <strong>in</strong> the Scal<strong>in</strong>g Factor box. To reduce the components’ size by half, enter 50 <strong>in</strong> the<br />

Scal<strong>in</strong>g Factor box. The Scale dialog box is convenient for quickly chang<strong>in</strong>g the size of all<br />

components on the form. You can br<strong>in</strong>g up the Scale dialog box by choos<strong>in</strong>g Edit | Scale from<br />

the ma<strong>in</strong> menu or Scale from the Form Designer speed menu.<br />

Figure 7.9.<br />

The Scale dialog box.<br />

NOTE<br />

A control can also be sized and moved by us<strong>in</strong>g the various alignment options. Let’s take a<br />

look at those now.<br />

Remember that you can always move components by modify<strong>in</strong>g their<br />

Left and Top properties, and you can size them by modify<strong>in</strong>g their<br />

Width and Height properties.<br />

Align<strong>in</strong>g Components<br />

Regardless of whether you have the Snap to Grid option turned on, you sometimes need to<br />

align components after plac<strong>in</strong>g them. Align<strong>in</strong>g components could mean align<strong>in</strong>g several<br />

components along a common edge, center<strong>in</strong>g components on the form, or spac<strong>in</strong>g<br />

components. There are two different ways to go about align<strong>in</strong>g components:

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

Saved successfully!

Ooh no, something went wrong!