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.

244 Day 7<br />

NOTE<br />

The Edit Tab Order dialog box displays all w<strong>in</strong>dowed components currently on the form.<br />

Non-w<strong>in</strong>dowed components are not displayed. To change the tab order, click on the name<br />

of the component you want to move <strong>in</strong> the tab order and then click the up or down buttons<br />

as needed. You can also drag the component to its new position <strong>in</strong> the tab order. Once you<br />

get the tab order set the way you want it, click OK and the tab order will be set. You can<br />

confirm the new sett<strong>in</strong>gs by view<strong>in</strong>g the TabOrder property of each control.<br />

The tab order starts with 0. The first component <strong>in</strong> the tab order is 0,<br />

the second is 1, and so on.<br />

May I See a Menu, Please?<br />

Menus are a big part of most W<strong>in</strong>dows applications. Some W<strong>in</strong>dows programs do not have<br />

menus, but the vast majority do. <strong>C++</strong>Builder makes creat<strong>in</strong>g menus easy with the Menu<br />

Designer. The Menu Designer has the follow<strong>in</strong>g features:<br />

■ It can create both ma<strong>in</strong> menus and pop-up menus (speed menus).<br />

■ It provides immediate access to the Code Editor to handle the OnClick events for<br />

menu items.<br />

■ It can <strong>in</strong>sert menus from templates or from resource files.<br />

■ It can save custom menus as templates.<br />

All of the Menu Designer’s commands are accessed via the Menu Designer speed menu or<br />

by <strong>in</strong>teract<strong>in</strong>g with the Object Inspector. Figure 7.18 shows the Menu Designer’s speed<br />

menu.<br />

Figure 7.18.<br />

The Menu Designer’s<br />

speed menu.

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

Saved successfully!

Ooh no, something went wrong!