How to subscribe to a Popup dialog?

How does one subscribe to a popup dialog button 1 press event?