>Thanks for your further explantion. So in order for a GUI object to appear in a form, it must be created in the context of the form, I can't just pass an already fabricated GUI object, a button for example, to a running form and ask the form to "contain" it, and hence show it. I guess that is all about the event loop as you said...
David,
Yes. In order for an object to be a visible element of a form it either needs to be put there at design time, or added at runtime with an thisform.AddObject() method call.
You can reference non-visual objects from a form like this:
lparameter roManager
this.oFormsManager = roManager
this.oService = createobject( "cServiceX" )
this.oFormsManager.DoSomethingForMe()
this.oService.GetXMLDoc(...)
but these two other objects are not visible parts of the form itself.