Skip to main content

TcxSchedulerEventPopupMenu.GetMenuItem(TcxSchedulerEventPopupMenuItem,Integer) Method

Returns the TMenuItem object corresponding to the AItem popup menu item or ASubItemIndex submenu item.

Declaration

function GetMenuItem(AItem: TcxSchedulerEventPopupMenuItem; ASubItemIndex: Integer = -1): TMenuItem;

Parameters

Name Type
AItem TcxSchedulerEventPopupMenuItem
ASubItemIndex Integer

Returns

Type
TMenuItem

Remarks

Invoke the GetMenuItem method within the OnPopup event handler to use the TMenuItem object, associated with the AItem popup menu item or ASubItemIndex submenu item (if the Show time as or Label item is selected), to customize the popup menu’s items.

Note

if the cxSchedulerDBStorage component is plugged into the scheduler control (see TcxSchedulerDBStorage) and the TcxSchedulerDBStorageFieldNames.LabelColor property is not bound to the dataset field the Label item won’t appear in the popup menu even if the epmiLabel flag on the Items property is active.

See Also