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.

6<br />

200 Day 6<br />

OnShow<br />

The OnShow event occurs just before the form becomes visible. You could use this event to<br />

perform any process<strong>in</strong>g that your form needs to do just before it is shown.<br />

The Object Inspector<br />

An <strong>in</strong>tegral part of the <strong>C++</strong>Builder IDE is the Object Inspector. This w<strong>in</strong>dow works <strong>in</strong><br />

conjunction with the Form Designer to aid <strong>in</strong> the creation of components. I’m go<strong>in</strong>g to<br />

discuss the Form Designer tomorrow, but before I do, I want to talk a little about the Object<br />

Inspector.<br />

The Object Inspector is where you set the design-time properties that affect how the<br />

component acts at runtime. The Object Inspector has three ma<strong>in</strong> areas:<br />

■ The Component Selector<br />

■ The Properties page<br />

■ The Events page<br />

You have been us<strong>in</strong>g the Object Inspector quite a bit up to this po<strong>in</strong>t, so I’ll review what you<br />

already know and show you a few th<strong>in</strong>gs you don’t know.<br />

The Component Selector<br />

NOTE<br />

The Component Selector is a drop-down combo box that is located at the top of the Object<br />

Inspector w<strong>in</strong>dow. The Component Selector allows you to choose a component to view or<br />

modify.<br />

Usually the quickest way to select a component is by click<strong>in</strong>g on the<br />

component on the form. Choos<strong>in</strong>g the component from the Component<br />

Selector is convenient if the component you are look<strong>in</strong>g for is<br />

hidden beneath another component or is off the visible area of the<br />

form.<br />

The Component Selector displays the name of the component and the class from which it<br />

is derived. For example, a memo component named Memo would appear <strong>in</strong> the Component<br />

Selector as<br />

Memo: TMemo

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

Saved successfully!

Ooh no, something went wrong!