list controllers on object

How would I recreate something similar to that which pops up when a user right clicks an object and chooses wire parameters. I want to recreate that rc menu that lists all the available object controllers.