The Delphi Main Menu and Toolbar

The Delphi main menu has all the choices necessary to make Delphi work. Because programming in Delphi is a highly visual operation, you might not use the main menu as much as you might with other programming environments. Still, just about anything you need is available from the main menu if you prefer to work that way. I'm not going to go over every item on the main menu here because you will encounter each item as you work through the next several chapters.

The Delphi toolbars provide a convenient way of accomplishing often-repeated tasks. A button is easier to locate than a menu item, not to mention that it requires less mouse movement. The Delphi main window toolbars are illustrated in Figure 4.3. (The Component palette has been removed for clarity.)

FIGURE 4.3. The Delphi main window toolbars.

If you are like me, you often forget to use the toolbar. But I'm telling you: Don't forget to learn and use the toolbar! As the old saying goes, "Do as I say, not as I do." If you take the time to learn the toolbar, it will save you time and make you more efficient in the long run. One of the reasons you bought Delphi was to produce Windows applications quickly, so you might as well make the most of it.

The Delphi toolbar is fully customizable. You can place the toolbars anywhere you want on the main window. You can rearrange the placement of the menu, the toolbars, or the Component palette to suit the way you work.

Customizing the toolbars is remarkably easy. Delphi enables you to add buttons to the toolbar, remove buttons, and rearrange buttons however you see fit. To configure a toolbar, right-click on the toolbar to display the context menu. Choose Customize from the context menu. When you choose this menu item, the Customize dialog box is displayed.

The Customize dialog box contains three tabs:

  • The first tab, Toolbars, shows you the toolbars available with a check mark next to toolbars that are currently visible. You can add or remove existing toolbars or reset the toolbars to their original default settings.
  • The second tab, labeled Commands, shows all the available toolbar buttons. To add a button to the toolbar, just locate its description in the Commands list box and drag it to the place you want it to occupy on any toolbar. To remove a button from a toolbar, grab it and drag it off the toolbar. It's as simple as that. Figure 4.4 shows the act of adding a button to a toolbar. If you really make a mess of things, simply go back to the Toolbars page and click the Reset button. The toolbar will revert to its default settings.

FIGURE 4.4. Customizing the toolbar.

• The third tab, Options, contains options such as whether the tooltips are displayed and how they are displayed. Feel free to customize the Delphi IDE any way you like. It's your development environment, so make it work for you.

Was this article helpful?

0 0
Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


  • franziska
    How to make tabbed menu in delphi?
    9 years ago
  • giuliano
    How to make custom menu like delphi Menu?
    9 years ago

Post a comment