To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=83964
Issue #|83964
Summary|css.awt.UnoControlButtonModel with property "PushButto
|nType" and "ImageURL" makes button multiline
Component|api
Version|OOo 2.3
Platform|All
URL|
OS/Version|All
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|code
Assigned to|jsc
Reported by|tobiaskrais
------- Additional comments from [EMAIL PROTECTED] Mon Nov 26 08:03:30 +0000
2007 -------
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",
com.sun.star.awt.ImagePosition.LeftCenter);
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. Not setting the PropertyValue
"PushButtonType" creates the button as intended: one line with the image
left centered.
Greetings, Tobias
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]