Set ListIndex of MenuItem


I create a menu which I popup:

[code] Dim vM as new MenuItem

	vM.Append new MenuItem("A")
	vM.Append new MenuItem("B")
	vM.Append new MenuItem("C")
	vM.Append new MenuItem("D")
	vM.Append new MenuItem("E")
	call vM.PopUp[/code]

I want this to behave as the PopupMenu.ListIndex so I can preselect which MenuItem will be preselected when the menu popup.

I think a preselection is not possible.
You can set a menuitem as marked, but that is not a solution.

vM.Item(2).Checked = true


It is so annoying even when I use my own applications that the menu don’t popup as expected.