listview增加右键菜单

admin2020-12-17  541

import win.ui;


//创建弹出菜单
winform.popmenu = win.ui.popmenu(winform);
winform.popmenu.add('关闭',function(id){
	winform.close();
});

winform.listview.onnotify = function(id,code,ptr){
	if(code=="0xFFFFFFFB")/*_NM_RCLICK*/  {
    		var x,y = win.getCursorPos();
    		winform.popmenu.popup(x,y,true);//弹出菜单
    	}

    }
转载请注明原文地址: http://www.aardio.net/read-97.html

最新回复(0)
winform(win)
aardio winform(win)