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.

Day 8<br />

VCL Components<br />

VCL Components<br />

by Kent Reisdorph<br />

Week<br />

As you know by now, components are much of what gives <strong>C++</strong>Builder its power.<br />

Components are designed us<strong>in</strong>g the properties, methods, and events model.<br />

Us<strong>in</strong>g the Form Designer, you can place a component on a form and modify its<br />

design-time properties. In some cases, that’s all you have to do. If needed, you<br />

can also manipulate the component at runtime by chang<strong>in</strong>g its properties and<br />

call<strong>in</strong>g its methods. Further, each component is designed to respond to certa<strong>in</strong><br />

events. I discussed properties, methods, and events on Day 5, “<strong>C++</strong> Class<br />

Frameworks and the Visual Component Model,” so I’m not go<strong>in</strong>g to go over<br />

that aga<strong>in</strong> here.<br />

Today you will f<strong>in</strong>d out more about components. You will learn about oftenused<br />

components and, as a result, learn about the VCL classes that represent<br />

those components. As you go through this chapter, feel free to experiment. If you<br />

read someth<strong>in</strong>g that you want to test, by all means do so. Learn<strong>in</strong>g by experience<br />

is as valuable as anyth<strong>in</strong>g you can do, so don’t be afraid to experiment.<br />

2<br />

271<br />

8

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

Saved successfully!

Ooh no, something went wrong!