Navigation:  Reference > Form Objects >

TMainMenu

Print this Topic Previous pageReturn to chapter overviewNext page

 

This object creates the menu that appears at the top of the form.  The items that make up the menu are actually TMenuItem objects.  You create those by using the Menu Item Editor.  The icon for this object is on the Standard page.

 

PALETTE ICON & EXAMPLE

 

 

PROPERTIES

The following are the properties that apply to this object.  Some are defined in Common Properties and are linked to their appropriate page.

 

List

 

ItemsThese are the TMenuItems that make up the menu.  This is what the user will actually see.  To create new items or edit/delete existing ones you can either click on the button in the property field or, right click on the TMainMenu object and choose the Menu Designer option.

 

       NOTE:  At the current time you cannot add or remove menu items at runtime.  However, if you have extra items that you add during design you can turn them on or off (using the Visible option in the line item).

 

Misc

 

Name

Tag

 

Other

 

ImagesIf you want to include images in the menu you need to specify the TImageList here.  You will then choose individual images during menu design (creating the line items).

 

COMMENTS

This object doesn't do anything by itself.  You have to create menu items with the menu editor before any items are visible.

 

EVENTS

There are no events for this object.

 


Page url: http://www.cassoftware.com/tas/manual/tmainmenu.htm