Create Custom Context Menu
public int showContextMenu(int _menuHandle)
{
int ret,Clicked2;
PopupMenu popupMenu = PopupMenu::create(_menuHandle,element.hWnd());
;
if(!SalesLine.RecId)
{
Clicked2 = popupMenu.insertItem("Ürün Bulucu"); Ürün Bulucu is a item add standart context menu
}
ret = popupMenu.draw();
switch (ret)
{
case Clicked2 :
salesline_ds.OpenItemConfirmation();//Open my form
break;
}
return ret;
}
Hiç yorum yok:
Yorum Gönder