Extending product function with VBA : System Architect events : Guidelines for adding macro items to menus programmatically : Adding a popup
  
Adding a popup
Use the CreatePopUpMenu method with the name and (optional) bitmap) you want to use for your popup. The popup is added to the root collection of popups in System Architect.
When you leave System Architect you no longer need your event handler class to remove any added popups using RemovePopUpMenu
See also
Guidelines for adding macro items to menus programmatically