Hi Fabian,
You can get the node that context menu belongs to, by previously save reference to it in the event handler of NTreeLiset.ItemNotify event:
NTreeListNode m_CurrentNode;
...
nTreeList1.ItemNotify += new NLightUIItemNotifyEventHandler(nTreeList1_ItemNotify);
...
void
nTreeList1_ItemNotify(object sender, NLightUIItemNotifyData data){
if (data.NotifyCode == NTreeList.ItemContextMenuDisplayingNotifyCode) {
m_CurrentNode = (
NTreeListNode)data.Sender; }
}
Then, when CommandClick event fires in the event handler you can use this cashed node.
Regards,
Angel.