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.

NOTE<br />

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

Item Description<br />

View as Text Shows the form description as text <strong>in</strong> the Code Editor. You<br />

may edit the text version of the form if you like. Choose<br />

View as Form from the Code Editor speed menu to go back<br />

to the form. You can also use Alt+F12 to switch from the<br />

View As Text and View As Form options.<br />

<strong>C++</strong>Builder creates a form file (DFM) for every form you create and<br />

places it <strong>in</strong> your project’s directory. The form file is a b<strong>in</strong>ary resource<br />

file that can’t be read by mere humans. When you choose the View As<br />

Text speed menu item, <strong>C++</strong>Builder converts the b<strong>in</strong>ary resource to<br />

readable form. When you switch back to the View as Form option,<br />

<strong>C++</strong>Builder recompiles the form file to implement any changes you<br />

have made.<br />

Most of the speed menu options are discussed <strong>in</strong> the follow<strong>in</strong>g sections. Others are discussed<br />

<strong>in</strong> later chapters when we discuss the particular aspect of <strong>C++</strong>Builder that they perta<strong>in</strong> to.<br />

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

The act of plac<strong>in</strong>g a component on a form is trivial. You simply select the component you<br />

want from the Component Palette and click on the form to place the component. When you<br />

click on the form, the component’s upper-left corner is placed at the location you clicked.<br />

Notice that when you click a button on the Component Palette, the button appears as<br />

pressed. When you click on the form to place the component, the button on the Component<br />

Palette pops up aga<strong>in</strong> to <strong>in</strong>dicate that the action is completed.<br />

TIP<br />

As you learned <strong>in</strong> the last chapter, to place a component on a form<br />

multiple times, press and hold Shift when you first select the<br />

component’s button on the Component Palette. Each time you click<br />

on the form, a new component will be added. Click the Arrow button<br />

on the Component Palette to stop plac<strong>in</strong>g components.<br />

219<br />

7

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

Saved successfully!

Ooh no, something went wrong!