Apache OpenOffice (AOO) Bugzilla – Issue 117891
The button face of Dialog/SpinButton is wrong in XP-style.
Last modified: 2017-11-11 21:29:20 UTC
In the case of "window-style : XP-style ", the button face of SpinButton (com.sun.star.awt.UnoControlSpinButton) becomes strange. (1) Orientation = 0 (Horizontal) The direction of the arrow is an inner direction. (2) Orientation = 1 (Vertical) The button face of the lower arrow is a striped pattern. The direction of the striped pattern changes in blue and silver / olive-green. Please refer to an attached image. Sub Main Dim oDialog As Object Dim oDialogModel As Object Dim oSpin1 As Object Dim oSpin1Model As Object Dim oSpin2 As Object Dim oSpin2Model As Object Dim oSpinBase As Object DialogLibraries.LoadLibrary("Standard") oDialog = CreateUnoDialog(DialogLibraries.Standard.Dialog1) oDialogModel = oDialog.Model oSpinBase = oDialog.getControl("Label1") oSpin1Model = CreateUnoService("com.sun.star.awt.UnoControlSpinButtonModel") oSpin1 = CreateUnoService("com.sun.star.awt.UnoControlSpinButton") With oSpin1Model .Orientation = 0 ' Horizontal .SpinValueMin = 0 .SpinValueMax = 100 .SpinValue = 50 End With oSpin1.setModel(oSpin1Model) oSpin1.createPeer(oSpinBase.Peer.Toolkit, oSpinBase.Peer) oSpin1.setPosSize( 0, 0, oSpinBase.PosSize.Width, _ oSpinBase.PosSize.Height, _ com.sun.star.awt.PosSize.POSSIZE ) oSpinBase = oDialog.getControl("Label2") oSpin2Model = CreateUnoService("com.sun.star.awt.UnoControlSpinButtonModel") oSpin2 = CreateUnoService("com.sun.star.awt.UnoControlSpinButton") With oSpin2Model .Orientation = 1 ' Vertical .SpinValueMin = 0 .SpinValueMax = 100 .SpinValue = 50 End With oSpin2.setModel(oSpin2Model) oSpin2.createPeer(oSpinBase.Peer.Toolkit, oSpinBase.Peer) oSpin2.setPosSize( 0, 0, oSpinBase.PosSize.Width, _ oSpinBase.PosSize.Height, _ com.sun.star.awt.PosSize.POSSIZE ) oDialog.Execute() oDialog.dispose() End Sub
Created attachment 76413 [details] Button face of SpinButton (Clasic and XP-style)
getting rid of value "enhancement" for field "severity". For enhancement the field "issue type" shall be used.
BASIC runtime error. Property or method not found: Dialog1. at line oDialog = CreateUnoDialog(DialogLibraries.Standard.Dialog1) ? AOO410m1(Build:9750) - Rev. 1562493 Rev.1562493 Win 7
No info from author.
Hi Please prepare Dialog1 in IDE beforehand. And, please place Label1/Label2 on Dialog1. The state of Dialog1, please watch a figure of Attachments. k_tsunoda
Thank you k_tsunoda
Still reproduce with Win7
(In reply to oooforum (fr) from comment #7) > Still reproduce with Win7 Should the Latest Confirmation in bu updated to 4.1.4?