How to: Add icons to popup menus

I'm not a programmer, try to learn some DOpus scripts. :thinking:

function OnClick(clickData)
{
    var test = ":Test";
    //Menu
	var opt1 = DOpus.NewVector(
							   "1",
							   "-",
							   "2",
							   "3",
							   "4",
							   "-",
							   "5" + test,
							   "-",
							   "6"
							   );
    
	var opt2 = DOpus.NewVector(opt1.length);
    var dlg = clickData.func.dlg;
	
	//Show menu
	dlg.choices = opt1;
	dlg.menu = opt2;
	var r = dlg.Show();
    
	//If clicking
	if (r > 0)
	{	
	//Set c equal to Clicked menu
	var c = opt1(r - 1);
	DOpus.Output(c);
	}
}

I don't think you can add icons to context menus made in that way. At least, there is no mention of it in the Dialog object documentation.

Request to add new parameters. . .
For example

	                   DOpus.popupnested(
							   "A"|Run a command|D:\Icons\1.ico,
							   "-",
							   "B"|Run a command|D:\Icons\2.ico,
							   "C"|Run a command|D:\Icons\3.ico,
							   "D"|Run a command|D:\Icons\4.ico,
							   "-",
							   "E" + test|Run a command|D:\Icons\5.ico,
							   "-",
							   "F"|Run a command|D:\Icons\6.ico
							   );

or

	                   DOpus.popupnested(
							   "A"|D:\Icons\1.ico,
							   "-",
							   "B"|D:\Icons\2.ico,
							   "C"|D:\Icons\3.ico,
							   "D"|D:\Icons\4.ico,
							   "-",
							   "E" + test|D:\Icons\5.ico,
							   "-",
							   "F"|D:\Icons\6.ico
							   );