Extending product function with VBA : System Architect events : Guidelines for adding macro items to menus programmatically : Adding macro items to a popup
  
Adding macro items to a popup
In exactly the same way as you do for adding to System Architect menus.
See also
Guidelines for adding macro items to menus programmatically