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.

Answers to Quiz Questions<br />

4. Hold down the Shift key when you click on the component <strong>in</strong> the Component<br />

Palette. Each time you click on the form, a new component will be placed.<br />

5. Double-click the component’s button <strong>in</strong> the Component Palette.<br />

6. .mak, .cpp, .h, .dfm, and .res.<br />

7. Show().<br />

8. ShowModal().<br />

9. In the Object Inspector, switch to the Events page. In the value column next to the<br />

event, click the drop-down arrow button. A list of compatible event handlers is<br />

displayed. Choose one.<br />

10. Click on a component <strong>in</strong> the Form Designer and press the Tab key on the keyboard.<br />

Each time you press the Tab key, the next component on the form is<br />

selected and will be displayed <strong>in</strong> the Object Inspector.<br />

Day 7<br />

1. When select<strong>in</strong>g components that are children of another component (components<br />

on a panel, for example).<br />

2. It is the anchor component. It will reta<strong>in</strong> its position, and all other components are<br />

aligned to it.<br />

3. Drag a bound<strong>in</strong>g rectangle around (or just touch<strong>in</strong>g) them.<br />

4. Select all the components you want to modify. Then choose Edit | Size from the<br />

ma<strong>in</strong> menu and choose the Grow to Largest radio button.<br />

5. The default event handler for that component is displayed <strong>in</strong> the Code Editor. In<br />

the case of many components, the OnClick event handler will be displayed. In some<br />

special cases (like the Image component, for <strong>in</strong>stance), a dialog is displayed.<br />

6. It forces the component to fill the entire client area of its parent, regardless of how<br />

the parent (usually a form) is sized.<br />

7. Traditionally, it means that choos<strong>in</strong>g that menu item will result <strong>in</strong> a dialog box<br />

be<strong>in</strong>g displayed.<br />

8. In the Menu Designer, you can drag the menu to a new location or you can use<br />

Cut and Paste.<br />

9. When typ<strong>in</strong>g the caption for the menu item, add the ampersand (&) before the<br />

shortcut key that you want to be the shortcut for that menu item. For <strong>in</strong>stance, the<br />

Caption property for the File | Exit menu item would read E&xit.<br />

10. Set its Enabled property to False.<br />

505<br />

A

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

Saved successfully!

Ooh no, something went wrong!