TW3ListMenu



TW3ListMenu


Represents class for menu.


Unit: SmartCL.Controls.ListMenu.pas

Hierarchy
TObject
TW3TagObj
TW3Component
TW3MovableControl
TW3CustomControl
TW3ListMenu
Properties
Property-icon.png Items


Usage Typical usage of this control is to first add new items by using Items object Add method. Then it is required to connect items to the event handlers (usually OnClick event).

Properties

Property-icon.png Items

Identify object responsible for maintaining items.

property Items: TW3ListItems read FItems;

This property provide access to methods used for manipulating items (such as Add, Remove, Clear etc.).


Example:

var  MyItem:= TW3ListItem;
begin  // Add item  
MyItem:= W3ListMenu1.Items.Add;  // Set Item’s title  
MyItem.Text:= 'Settings';  // Connect item to click event  
MyItem.OnClick:= MyItemClick;