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.

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

We better save the project because we’re go<strong>in</strong>g to use it later <strong>in</strong> the chapter. Choose File | Save<br />

All from the ma<strong>in</strong> menu. Save the ma<strong>in</strong> form’s source unit as SPMa<strong>in</strong> and the project as<br />

Scratch.<br />

Sett<strong>in</strong>g the Tab Order<br />

NEW TERM<br />

NOTE<br />

The tab order refers to the order <strong>in</strong> which components will receive <strong>in</strong>put focus when<br />

the user presses the Tab key on the keyboard.<br />

<strong>C++</strong>Builder forms automatically support component navigation us<strong>in</strong>g the Tab key. You can<br />

move forward from component to component us<strong>in</strong>g Tab and backward us<strong>in</strong>g Shift+Tab.<br />

There are two types of visual components. W<strong>in</strong>dowed components are<br />

components that accept focus. W<strong>in</strong>dowed components <strong>in</strong>clude the Edit,<br />

Memo, ListBox, ComboBox, and Button components, as well as many more.<br />

Non-w<strong>in</strong>dowed components are components that do not accept<br />

keyboard focus. Components such as Image, SpeedButton, Label, Shape,<br />

and many others are non-w<strong>in</strong>dowed components.<br />

The tab order applies only to w<strong>in</strong>dowed components. Non-w<strong>in</strong>dowed<br />

components are excluded from the tab order.<br />

The tab order is <strong>in</strong>itially set based on the order the components were placed on the form when<br />

the form was designed. You can modify the tab order by chang<strong>in</strong>g the TabOrder property for<br />

each control <strong>in</strong> the Object Inspector. That method is tedious because you have to go to each<br />

control <strong>in</strong>dividually. An easier way is provided via the Edit Tab Order dialog box. (See Figure<br />

7.17.)<br />

Figure 7.17.<br />

The Edit Tab Order<br />

dialog box.<br />

243<br />

7

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

Saved successfully!

Ooh no, something went wrong!