Hi together,

here ist my Java code:
-----%<-----
Object buttonModel04 = xMSF.createInstance(
        "com.sun.star.awt.UnoControlButtonModel");
XPropertySet xPSetCancelButton = (XPropertySet)
        UnoRuntime.queryInterface(XPropertySet.class, buttonModel04);

xPSetCancelButton.setPropertyValue("PositionX", new Integer(100));
xPSetCancelButton.setPropertyValue("PositionY", new Integer(120));
xPSetCancelButton.setPropertyValue("Width", new Integer(50));
xPSetCancelButton.setPropertyValue("Height", new Integer(14));
xPSetCancelButton.setPropertyValue("Name", "Close");
xPSetCancelButton.setPropertyValue("PushButtonType", new Short((short) 2));
xPSetCancelButton.setPropertyValue("ImagePosition", new Short((short)
1));
xPSetCancelButton.setPropertyValue("ImageURL", "close.gif");
xPSetCancelButton.setPropertyValue("Label", new String(" Close"));
----%<-----

This code produces a button with the image in the first line and the
text "Close" in the second line. Deleting the PropertyValue
"PushButtonType" creates the button as intended: one line with the image
left centered. Is this a bug or a feature?

Greetings, Tobias

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

Reply via email to