Carsten Driesner wrote:

Don't create your own layout manager. Every frame has its own layout manager instance and you can retrieve it using the interface com.sun.star.beans.XPropertySet and "LayoutManager" as the key.


XLayoutManager xLayoutManager = (XLayoutManager)UnoRuntime.queryInterface(XLayoutManager.class, layoutManager);

       xLayoutManager.setVisible(false);

Correct call, but using the wrong layout manager instance. The created layout manager is not associated with any frame, therefore it cannot do anything useful.

Regards,
Carsten

Thanks!! I figured it out myself this morning. :) But still, how should I have known that every frame has an instance of XLayoutManager? There isn't documented such a property in IDL Reference. And where can I find list of all (resource)URLs used in UNOs? I mean things like "private:resource/menubar/menubar".

Keen on learning,
Tuomas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to