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.

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

appear on nonvisual components, and the handles can be dragged, but<br />

the results of the dragg<strong>in</strong>g operation will be ignored.<br />

Groups of controls cannot be sized by dragg<strong>in</strong>g. The siz<strong>in</strong>g handles (black squares) are<br />

replaced by selection <strong>in</strong>dicators (gray squares) when you select more than one component.<br />

TIP<br />

TIP<br />

To size all the components <strong>in</strong> a group at one time, modify the Width or<br />

Height property <strong>in</strong> the Object Inspector or use the Size dialog box (the<br />

Size dialog is discussed <strong>in</strong> the section “Siz<strong>in</strong>g Components”). All<br />

components <strong>in</strong> the selection will take on the new values.<br />

To size a control or group of controls one pixel at a time, hold down<br />

the Shift key and press any of the arrow keys on the keyboard. The up<br />

and down arrows will size the control vertically, and the right and left<br />

arrows will size the control horizontally. Only the Width and Height<br />

properties of the component are affected. The Top and Left properties<br />

are not modified.<br />

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

Another siz<strong>in</strong>g option is the Size dialog box. You can br<strong>in</strong>g up the Size dialog box by choos<strong>in</strong>g<br />

Edit | Size from the ma<strong>in</strong> menu. Figure 7.8 shows the Size dialog box.<br />

Figure 7.8.<br />

The Size dialog box.<br />

This dialog box is used when you want to force a group of controls to the same width or<br />

height. For <strong>in</strong>stance, let’s say you had six edit components on a form, all with different widths.<br />

To make the form appear more balanced, you might want to make all the edit components<br />

the same width. You would first select the components and then <strong>in</strong>voke the Size dialog box.<br />

From there you could choose Shr<strong>in</strong>k to Smallest <strong>in</strong> the Width column to make all the<br />

231<br />

7

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

Saved successfully!

Ooh no, something went wrong!