View Issue Details

IDProjectCategoryView StatusLast Update
0006504JEDI VCL00 JVCL Componentspublic2019-05-02 08:33
ReporterDanielTrAssigned Tojfudickar 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.48 
Target VersionFixed in Version 
Summary0006504: Width of UpDown buttons in TJvCustomSpinEdit does not scale
DescriptionThe buttons width is calculated as the systems scrollbar width but limited to 15px (hard coded) in JvSpin.DefBtnWidth. This applies to bkClassic and bkStandard.

This way the buttons become very narrow, when using a higher scale factor or an output device with high dpi.

Suggestions for a solution:
1. Remove the limitation in DefBtnWidth completely (except there is a use case where it is really necessary)
2. Make the limitation value variable with public/protected getter and setter and 15 as default value
TagsNo tags attached.

Activities

obones

2018-07-18 15:42

administrator   ~0021490

High DPI support is very poor in the VCL itself, so it's hard to make it work in the JVCL.
That being said, could you check if the issue is still present in the latest GIT content? If yes, please provide the zipped sources of an application showing this.

mh

2019-03-11 22:54

reporter   ~0021644

Is there a need for the 15 px limit?

mh

2019-03-12 22:38

reporter   ~0021648

Another suggestion for this: make 15px for 96 dpi and automaticaly scale the limit according to screen dpi? What to do in multi display scenarios? Use the dpi of the screen the control is on?

jfudickar

2019-04-19 21:30

developer   ~0021722

Yes and yes :-)

mh

2019-04-24 19:56

reporter   ~0021732

I just created a pull request for a possible solution. I hope it is good enough.

mh

2019-05-01 10:08

reporter   ~0021784

New improved pull request created:
https://github.com/project-jedi/jvcl/pull/113

jfudickar

2019-05-02 08:33

developer   ~0021791

Fixed in Repository

Issue History

Date Modified Username Field Change
2016-03-31 10:43 DanielTr New Issue
2018-07-18 15:42 obones Note Added: 0021490
2018-07-18 15:42 obones Status new => feedback
2019-03-11 22:54 mh Note Added: 0021644
2019-03-12 22:38 mh Note Added: 0021648
2019-04-19 21:30 jfudickar Note Added: 0021722
2019-04-24 19:56 mh Note Added: 0021732
2019-05-01 10:08 mh Note Added: 0021784
2019-05-02 08:33 jfudickar Note Added: 0021791
2019-05-02 08:33 jfudickar Status feedback => resolved
2019-05-02 08:33 jfudickar Resolution open => fixed
2019-05-02 08:33 jfudickar Assigned To => jfudickar