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 />

178 Day 6<br />

each time. To place multiple components on the form, press and hold the Shift key when<br />

select<strong>in</strong>g the component from the Component Palette. After you select the component, you<br />

can release the Shift key. The component’s button on the Component Palette will appear<br />

pressed and will be highlighted with a blue border. Click on the form to place the first<br />

component. Notice that the button stays pressed <strong>in</strong> the Component Palette. You can click<br />

as many times as you like; a new component will be placed each time you click the form. To<br />

stop plac<strong>in</strong>g components, click the selector button on the Component Palette (the arrow<br />

button). The component button pops up to <strong>in</strong>dicate that you are done plac<strong>in</strong>g components.<br />

See<strong>in</strong>g is believ<strong>in</strong>g, so follow these steps:<br />

1. Create a new project.<br />

2. Press and hold the Shift key on the keyboard and click on the Label component<br />

button <strong>in</strong> the Component Palette.<br />

3. Click three times on the form, mov<strong>in</strong>g the cursor each time to <strong>in</strong>dicate where you<br />

want the new component placed.<br />

4. Click the arrow button on the Component Palette to end the process and return to<br />

form design mode.<br />

NOTE<br />

TIP<br />

It’s fastest to place all components of a particular type on your form at<br />

one time us<strong>in</strong>g this technique. Components can always be rearranged<br />

and resized at a later time.<br />

When plac<strong>in</strong>g multiple copies of a particular component, it’s easy to<br />

forget to click the arrow button when you’re done. If you accidentally<br />

place more components than you <strong>in</strong>tended, you can simply delete any<br />

extras.<br />

Plac<strong>in</strong>g and Center<strong>in</strong>g a Component on the Form<br />

<strong>C++</strong>Builder provides a shortcut method of plac<strong>in</strong>g a component on a form. Simply doubleclick<br />

the component’s button <strong>in</strong> the Component Palette, and the component will be placed<br />

on the form. The component will be centered on the form both horizontally and vertically.<br />

Components placed with this method can be moved to another location on the form just like<br />

components placed <strong>in</strong> the usual method.

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

Saved successfully!

Ooh no, something went wrong!