Hi Carsten,

> Because attachFrame() is automatically called by loadComponentFromURL(),
> you can remove this line without any problem. Normally attachFrame() is
> not used by developers. There are some special situations where one can
> use attachFrame(), e.g. if you dynamically want to use a
> self-implemented layout manager.

> Please don't forget to set the property "Persistent" of the user
> interface element to false (default is always true). Otherwise your
> changes will be persistent.
> 
> // Make changes only transient.
> com.sun.star.beans.XPropertySet xPropSet = (XPropertySet)
>   UnoRuntime.queryInterface(XPropertySet.class, myMenuBar);
> xPropSet.setPropertyValue("Persistent", new Boolean(false));

I applied your changes and created a code snippet. This is already
posted to the list. See here:
http://api.openoffice.org/servlets/ReadMsg?list=dev&msgNo=14542

Thanks for your help!

Greetings, Tobias

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

Reply via email to