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.

Quiz<br />

The <strong>C++</strong>Builder IDE Explored: Projects and Forms<br />

Q What’s the difference between a dialog box and a child w<strong>in</strong>dow <strong>in</strong><br />

<strong>C++</strong>Builder?<br />

A There is no real difference. A dialog box form might have certa<strong>in</strong> traits such as a<br />

dialog box border rather than a siz<strong>in</strong>g border; OK, Cancel, and Help buttons; and<br />

no M<strong>in</strong>imize or Maximize buttons. But a dialog box is still just a form like any<br />

other. A form might have the appearance of a dialog box or of a child w<strong>in</strong>dow, but<br />

a form is just a form.<br />

Q Can I check my program for errors without runn<strong>in</strong>g the program?<br />

A Yes. Just choose Project | Syntax Check from the ma<strong>in</strong> menu. <strong>C++</strong>Builder will<br />

compile any units that have changed s<strong>in</strong>ce the last compile and will report any<br />

errors encountered.<br />

Q Can I build OWL or MFC applications with <strong>C++</strong>Builder?<br />

A Yes. Because <strong>C++</strong>Builder’s strengths lie <strong>in</strong> its use of VCL, you probably won’t want<br />

to develop complex applications <strong>in</strong> <strong>C++</strong>Builder us<strong>in</strong>g OWL or MFC, but you<br />

certa<strong>in</strong>ly may if you want.<br />

1. How do you <strong>in</strong>voke the Toolbar Editor dialog box?<br />

2. Once you have the Toolbar Editor dialog box, how do you add buttons to the<br />

toolbar?<br />

3. How do you remove buttons from the toolbar?<br />

4. What’s the easiest way to place multiple components of the same type on a form?<br />

5. What’s the easiest way to place a component <strong>in</strong> the center of the form?<br />

6. List the file types needed to build an application <strong>in</strong> <strong>C++</strong>Builder.<br />

7. What VCL method do you use to display a form modelessly?<br />

8. What VCL method do you use to display a form modally?<br />

9. How can you attach an event to an event handler that has been previously def<strong>in</strong>ed?<br />

10. When us<strong>in</strong>g the Object Inspector, how can you enumerate the choices for a<br />

particular property?<br />

215<br />

6

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

Saved successfully!

Ooh no, something went wrong!