Use the Menu Designer to Create Menu

How to create and manage menus? Menus provide an easy way for your users to execute logically grouped commands. The Menu Designer enables you to easily add a menu–either predesigned or custom tailored–to your form. You add a menu component to the form, open the Menu Designer, and type menu items directly into the Menu

How to Create SubMenus and Add Images to Menu Items

How to create submenus? Many application menus contain drop-down lists that appear next to a menu item to provide additional, related commands. Such lists are indicated by an arrow to the right of the menu item. C++Builder supports as many levels of such submenus as you want to build into your menu. Organizing your menu

How to Use Menu Templates and Save a Menu as a Template

How to use menu templates? C++Builder or Delphi provides several predesigned menus, or menu templates, that contain frequently used commands. You can use these menus in your applications without modifying them (except to write code), or you can use them as a starting point, customizing them as you would a menu you originally designed yourself.

How to Build Menus in Delphi or C Builder

How to build menus? You add a menu component to your form, or forms, for every menu you want to include in your application. You can build each menu structure entirely from scratch, or you can start from one of the predesigned menu templates. For more information about menu templates, see Using menu templates. For

How to Manipulate Menu Items at Runtime and Merge Menus

How to manipulate menu items at runtime? Sometimes you want to add menu items to an existing menu structure while the application is running, to provide more information or options to the user. You can insert a menu item by using the menu item’s Add or Insert method, or you can alternately hide and show

How to Switch Between Menus and Name Conventions for Template Menu Items

How to switch between menus at design time? If you’re designing several menus for your form, you can use the Menu Designer context menu or the Object Inspector to easily select and move among them. To use the context menu to switch between menus in a form, Right-click in the Menu Designer and choose Select

How to Edit Menu Items and Use the Menu Designer context Menu?

How to edit menu items in the Object Inspector? This section has discussed how to set several properties for menu items–for example, the Name and Caption properties–by using the Menu Designer. The section has also described how to set menu item properties, such as the ShortCut property, directly in the Object Inspector, just as you

How to use the main VCL/CLX thread and thread-local variables

How to use the main VCL/CLX thread? The Execute method is your thread function. You can think of it as a program that is launched by your application, except that it shares the same process space. Writing the thread function is a little trickier than writing a separate program because you must make sure that you