Form in Dialogue objects not binding to parent form

I have a form in development that is called by a button on another form using the following code snippet:

var cat_initial_x = 100;
var cat_initial_y = 100;

application.showFormInDialog(forms.cat_widget,  cat_initial_x,  cat_initial_y,  -1,  -1,  'Category Request',  false,  false,  'cat_widget_modal',  false)

If I call the form cat_widget everything looks fine until I attempt to move the modal dialog around. As soon as I move the dialog the object that has focus (on the form within the dialog) does not move with the rest of the objects. I have shown the problem with one test form that runs only the above lines of code. The form that is being called within the dialog comes from another module.

See the attached graphics for pre and post move. Using 3.5 final.

Suggestions?

Michael

The problem appears to be tied to the issuance of element.element_name.requestFocus() within the form contained by the showFormInDialog. If this method is not called, the form in its entirety remains bound to the FormInDialog. If requestFocus is called then the problem occurs: either at the time of the initial call (ie - requestFocus is the very last statement before handing control back to the user … post form load/show) OR if requestFocus is called after user interaction begins (user does something and then form does something and issues another requestFocus).