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.

226 Day 7<br />

Us<strong>in</strong>g the Ctrl+drag sequence is the only way to select a group of components that are<br />

conta<strong>in</strong>ed with<strong>in</strong> another component if you are us<strong>in</strong>g the drag method. You can use the<br />

Shift+click method to select components conta<strong>in</strong>ed with<strong>in</strong> another component just as you<br />

do when select<strong>in</strong>g components on a form.<br />

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

NOTE<br />

NOTE<br />

Mov<strong>in</strong>g components is a common and fairly simple task. To move an <strong>in</strong>dividual component,<br />

simply place the mouse cursor over the component and drag. As you drag, a white rectangle<br />

that represents the component moves with the mouse cursor. When you have the white<br />

rectangle where you want it, let go of the mouse button, and the component will be moved<br />

to that location.<br />

When you move a control via drag-and-drop, the Left and Top properties<br />

of the control are automatically updated.<br />

It’s easiest to move a component by drag-and-drop. If you need f<strong>in</strong>er<br />

control, you can modify the Left and Top properties of the component.<br />

You can also use various alignment options, which I’ll discuss later <strong>in</strong><br />

the chapter <strong>in</strong> the section “Align<strong>in</strong>g Components.”<br />

If you have the Snap to Grid option on, the white dragg<strong>in</strong>g rectangle will snap to the nearest<br />

grid po<strong>in</strong>t as you drag.<br />

TIP<br />

If you change your m<strong>in</strong>d while dragg<strong>in</strong>g, you can press the Esc key on<br />

the keyboard before you release the mouse button to cancel the drag<br />

operation. The component will return to its orig<strong>in</strong>al position.<br />

Dragg<strong>in</strong>g a group of controls works the same way. After you have a group of components<br />

selected, place the mouse cursor over any one of the controls and beg<strong>in</strong> dragg<strong>in</strong>g. The white<br />

dragg<strong>in</strong>g rectangle will be displayed for each of the controls <strong>in</strong> the group. This allows you to<br />

visualize where the group will be placed when you release the mouse button.

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

Saved successfully!

Ooh no, something went wrong!