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.

Quiz<br />

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

Q I am try<strong>in</strong>g to select a group of components on a panel by dragg<strong>in</strong>g the<br />

selection rectangle around them, but I keep mov<strong>in</strong>g the panel. What’s wrong?<br />

A You need to hold down the Ctrl key while dragg<strong>in</strong>g when you are select<strong>in</strong>g<br />

components conta<strong>in</strong>ed on a panel.<br />

Q I’ve moved my components around my form several times and now the tab<br />

order is erratic. What can I do to fix that?<br />

A Choose Tab Order from the Form Designer’s speed menu. Arrange the tab order<br />

the way you want it. When you click OK, the new tab order will be implemented.<br />

Q The templates provided are nice, but they’ve got so much stuff on them that I<br />

don’t need. What can I do about that?<br />

A Basically, you can do two th<strong>in</strong>gs. First, you can import a menu and then simply<br />

delete the items you don’t want. Us<strong>in</strong>g the click, Shift+click method you can get<br />

rid of unwanted menu items <strong>in</strong> just a few seconds. Delet<strong>in</strong>g items from a menu<br />

<strong>in</strong>serted from a template has no adverse effects. The second th<strong>in</strong>g you can do is to<br />

follow the click, Shift+click method and then, when you have the menu just the<br />

way you want it, you can save it as a new template. That way you can keep the<br />

orig<strong>in</strong>al <strong>C++</strong>Builder-supplied template and have your customized template as well.<br />

Q Can I save my own menus as templates?<br />

A Yes. First create the menu and then choose Save As Template from the Menu<br />

Designer speed menu. Give the template a name, click OK, and the template is<br />

saved. Now all you have to do to reuse the menu later is <strong>in</strong>sert the menu us<strong>in</strong>g the<br />

Insert From Template feature.<br />

1. When do you use Ctrl+drag <strong>in</strong> select<strong>in</strong>g components?<br />

2. What significance does the first component selected have when you’re align<strong>in</strong>g a<br />

group of components?<br />

3. What is the quickest method of select<strong>in</strong>g a group of components?<br />

4. How can you make a group of components all have the width of the widest<br />

component <strong>in</strong> the group?<br />

5. What happens when you double-click a component on a form?<br />

6. What does the alClient option of the Align property do?<br />

7. What does the ellipsis follow<strong>in</strong>g a menu item mean?<br />

8. What two ways can you move a menu item?<br />

9. How do you add keyboard shortcuts to menu items?<br />

10. How do you <strong>in</strong>itially disable a menu item?<br />

263<br />

7

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

Saved successfully!

Ooh no, something went wrong!