kentgibson Power User

Joined: 24 Jan 2006 Posts: 85
|
Posted: Tue Mar 28, 2006 11:36 pm Post subject: Problems with Transparent Frames inside tables |
|
|
Has anyone had any problems programmatically generating transparent frames inside tables?
I have a table and inside it I have textframes, but for some reason they are not coming out transparent. I know this works with the ui, plus I remember that the same code worked when the frames were in text sections. Could this be a bug? Am I doing something wrong?
Here is basically what I am doing:
| Code: |
Object writerShape = documentFactory.createInstance("com.sun.star.text.TextFrame" );
XTextContent xTextContentShape = ( XTextContent ) UnoRuntime.queryInterface( XTextContent.class,writerShape );
XPropertySet xTextContentPropertySet = ( XPropertySet ) UnoRuntime.queryInterface( XPropertySet.class,xTextContentShape );
// no effect
xTextContentPropertySet.setPropertyValue("BackTransparent", Boolean.TRUE );
// no effect
xTextContentPropertySet.setPropertyValue( "Opaque",Boolean.FALSE );
// no effect
//xTextContentPropertySet.setPropertyValue("BackColor", new Integer( 0xffffffff ) );
// UnknownPropertyException
//xTextContentPropertySet.setPropertyValue("Transparency", new Short( ( short ) 100 ) );
|
In the ui you can set a 100% transparent color. That is what I am trying to do with the backcolor, but nothing I try seems to work.
thanks and kind regards.
[/code] |
|