Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxSchedulerEventPopupMenu.GetMenuItem(TcxSchedulerEventPopupMenuItem,Integer) Method

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

#Declaration

Delphi
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