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 />

176 Day 6<br />

The <strong>C++</strong>Builder toolbar is fully customizable. As you saw back <strong>in</strong> Figure 6.1, between the<br />

toolbar and the Component Palette is a vertical l<strong>in</strong>e that acts as a siz<strong>in</strong>g bar. When you place<br />

the mouse cursor over the siz<strong>in</strong>g bar, you will see the siz<strong>in</strong>g cursor (a double-headed black<br />

arrow). Once you have the siz<strong>in</strong>g cursor, you can drag the siz<strong>in</strong>g bar right or left to make the<br />

toolbar take more or less room on the <strong>C++</strong>Builder ma<strong>in</strong> w<strong>in</strong>dow.<br />

Customiz<strong>in</strong>g the toolbar is remarkably easy. <strong>C++</strong>Builder allows you to add buttons to the<br />

toolbar, remove buttons, and rearrange buttons however you see fit. To configure the toolbar,<br />

you must use the toolbar speed menu. To display the speed menu, place your mouse cursor<br />

over the toolbar and click the secondary mouse button. The speed menu choices are listed<br />

<strong>in</strong> Table 6.2.<br />

Table 6.2. Items on the toolbar’s speed menu.<br />

Menu Item Description<br />

Show H<strong>in</strong>ts Controls whether the h<strong>in</strong>ts (tool tips) are displayed for the<br />

toolbar buttons.<br />

Hide Hides the toolbar.<br />

Help Invokes <strong>C++</strong>Builder help with the toolbar page displayed.<br />

Properties Displays the Toolbar Editor dialog box, which allows you to<br />

customize the toolbar.<br />

NOTE<br />

If you have hidden the toolbar, you will have to choose View | Toolbar<br />

from the ma<strong>in</strong> menu to display the toolbar aga<strong>in</strong>.<br />

To customize the toolbar, choose Properties from the speed menu. When you choose this<br />

menu item, the Toolbar Editor dialog box is displayed. This dialog box conta<strong>in</strong>s all the<br />

possible toolbar buttons. To add a button to the toolbar, just locate it <strong>in</strong> the Toolbar Editor<br />

and drag it to the place you want it to occupy on the toolbar. To remove a button, grab it<br />

and drag it off the toolbar. It’s as simple as that. If you really make a mess of th<strong>in</strong>gs, just click<br />

the Reset button <strong>in</strong> the Toolbar Editor dialog box (see Figure 6.4), and the toolbar will revert<br />

to its default sett<strong>in</strong>gs.<br />

If you want to make room for more buttons, drag the siz<strong>in</strong>g bar to the right to make the<br />

toolbar wider. Now just drag any buttons you want from the Toolbar Editor to the toolbar.<br />

The toolbar has an <strong>in</strong>visible grid that aids you when dropp<strong>in</strong>g new buttons; just get the<br />

buttons close to where you want them and they will snap <strong>in</strong>to place. I happen to like the Cut,

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

Saved successfully!

Ooh no, something went wrong!