Issue 83964 - css.awt.UnoControlButtonModel with property "PushButtonType" and "ImageURL" makes button multiline
Summary: css.awt.UnoControlButtonModel with property "PushButtonType" and "ImageURL" m...
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-26 08:03 UTC by tobiaskrais
Modified: 2013-02-24 21:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description tobiaskrais 2007-11-26 08:03:30 UTC
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
Comment 1 jsc 2007-12-19 06:57:53 UTC
jsc -> cd: seems to be one for you
Comment 2 carsten.driesner 2008-01-28 07:54:49 UTC
cd: Set target to OOo 3.0.
Comment 3 Mathias_Bauer 2008-05-19 10:57:43 UTC
3.x