Issue 117891 - The button face of Dialog/SpinButton is wrong in XP-style.
Summary: The button face of Dialog/SpinButton is wrong in XP-style.
Status: REOPENED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 3.3
Hardware: PC Windows XP
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needhelp
Depends on:
Blocks:
 
Reported: 2011-04-19 13:02 UTC by k_tsunoda
Modified: 2017-11-11 21:29 UTC (History)
5 users (show)

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


Attachments
Button face of SpinButton (Clasic and XP-style) (17.43 KB, image/gif)
2011-04-19 13:09 UTC, k_tsunoda
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description k_tsunoda 2011-04-19 13:02:04 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
Comment 1 k_tsunoda 2011-04-19 13:09:21 UTC
Created attachment 76413 [details]
Button face of SpinButton (Clasic and XP-style)
Comment 2 Oliver-Rainer Wittmann 2012-06-13 12:19:17 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.
Comment 3 Edwin Sharp 2014-02-06 20:06:32 UTC
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
Comment 4 Edwin Sharp 2014-02-20 15:59:48 UTC
No info from author.
Comment 5 k_tsunoda 2014-02-27 12:10:48 UTC
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
Comment 6 Edwin Sharp 2014-02-27 12:27:54 UTC
Thank you k_tsunoda
Comment 7 oooforum (fr) 2017-11-11 15:43:33 UTC
Still reproduce with Win7
Comment 8 Keith N. McKenna 2017-11-11 21:29:20 UTC
(In reply to oooforum (fr) from comment #7)
> Still reproduce with Win7

Should the Latest Confirmation in bu updated to 4.1.4?