title: Add event to dynamically declared control
body: <p>This is a PowerBuilder question.  I'm using PowerBuilder 12 Classic.</p>
  
  <p>I have a window in which most of the controls are declared dynamically in code using OpenUserObject.  When one of these controls is clicked, a panel should open in the container window.  However, I'm not sure how to trigger an event from a dynamically declared control.  The control type is custom (custom code in a standard visual object, singleLineEdit), and I have custom code declared in the control's getfocus event.  But how do I reference the container window?</p>
  
  <p>I do know that I can reference the container window by name, but that's very self-limiting.  Is there any other way to accomplish this?</p>