Hi Ariel, > But when the control model is instantiated this way, there is no control > at all: XControlContainer::getControl() at the UnoControlDialog returns > null. > Also strange that the model instantiated this way has properties it does > not have when instantiated at the global service manager (PositionX, > PosotionY, Width, Height...)
Now that you mention it ... In fact the dialog model requires, when you insert a control model, that this model has the above-mentioned properties - they're required to position/size the belonging control, later on. Trying to insert a control model without those properties should fail. The "normal" control models created at the global service manager don't have those properties, since they were originally created for contexts where this wasn't necessary, and still isn't necessary today: UNO controls in documents. So, when you create a control at the factory of the dialog model, then this is effectively the same as creating it at the global service manager, and *wrapping* it into a small class which appends the additional properties. Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Base http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]