@Jeff T What code do you use to display the contextual menu?
It should go away when you select an item.
Try getting the result of the popup,
Then setting the menu to nil, then opening the new window
How do I set the menu to nil?
Function ConstructContextualMenu(index as Integer, base as MenuItem, x as Integer, y as Integer) As Boolean
Function ContextualMenuAction(index as Integer, hitItem as MenuItem) As Boolean
Select Case HitItem.text
editmode = true