property SwimLane.ContextMenuObjectFromID (ObjectType as ContextMenuObjectTypeEnum, [ObjectID as Variant]) as Object
Gives the context menu object based on the type and identifier.

TypeDescription
ObjectType as ContextMenuObjectTypeEnum Indicates the type of the object where the action occurs. 
ObjectID as Variant Specifies the unique identifier of the object which hosts the context menu. The ObjectID values depends on the type of the object as explained bellow. 
Object An object on the surface with giving identifier. 
The ContextMenuObjectFromID(ObjectType,ObjectID) property determines the object that hosts the context-menu, such as element, link, pool and so on. The ActionContextMenu event notifies your application once an action occurs within the object's context menu. Use the ContextMenu property to provide a custom context menu for the objects on the surface. Use the AllowContextMenu property to specify the combination of keys that allows the user to open the object's context menu. 

By default, you can provide a context-menu for the following type of objects: