Page 1 of 2
JPEG quality slider moves the wrong way on keyboard input
Posted: Thu Sep 17, 2009 7:21 am
by TheEvilHammer
To repro:
- Open Tools → Options → General → Read/Write.
- Select the Write tab and then select JPEG.
- Use the mouse to put the current focus on the Quality slider control.
- Press the up key and the quality decreases; press the down key and the quality increases.
Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Mon Sep 21, 2009 8:54 pm
by helmut
"Confirmed", but I'm not sure whether this is really a bug:
Sliders' value increases by pressing "Down" this is Windows standard. Now, Pierre has combined two controls: The slider and editext with spinbutton. Pressing down while focus is on the slider increases the value whereas pressing down in the edittext decreases the values.
In order to make this combined control work consistently it might make sense to change the slider behaviour, but this would be no longer Windows standard, then. And it might be quite some effort, because the combined control is used in many dialogs, in "Image > Adjust > Brightness.." for example.
All in all I'd say this is a small nuisance - but also the little things working properly make up a good software...
Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Mon Sep 21, 2009 9:36 pm
by TheEvilHammer
helmut wrote:Sliders' value increases by pressing "Down" this is Windows standard.
Are you sure this is true? I just tried it out and I'm not seeing that behavior. Open Control Panel → Sounds and Audio Devices and you'll see a horizontal slider. If you press Down while the focus is on the slider, it moves to the left, which is exactly what I would expect. Why do you think that the Windows standard is the other way around?
Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Tue Sep 22, 2009 2:38 am
by Clo
TheEvilHammer

Hello !
…Open Control Panel → Sounds and Audio Devices and you'll see a horizontal slider. If you press Down while the focus is on the slider, it moves to the left, which is exactly what I would expect. …
•
I confirm this.
Keys:
Down (or left)
Minus
Up (or right)
Plus
- That work by steps (with an irritating “beep” for each key press).
BUT :
… 4. Press the up key and the quality decreases; press the down key and the quality increases. …
• I can
not confirm that in XnView 1.96.5 ! Here, it works as expected in this dialogue-box (and also i.e. in the
Adjust… ones).
- XP-Pro SP1 (Fr)

KR
Claude
Clo
Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Tue Sep 22, 2009 4:15 am
by TheEvilHammer
Clo wrote:
• I cannot confirm that in XnView 1.96.5 !
I am actually running 1.96.2, so maybe the problem has been fixed? I will upgrade and try again...
Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Tue Sep 22, 2009 4:20 am
by TheEvilHammer
I just tried 1.96.5 and I'm seeing the same problem.
Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Tue Sep 22, 2009 7:45 pm
by helmut
I've just double-checked with some applications and found that there seems to be no real standard for the Up/Down keys. Some applications (e.g. Logitech Quickcam or old Windows Common Controls slider) use "Down" for a higher value, some applications like the volume control of Windows use "Down" for a lower value.
Using "Up key" for a higher value and "Down key for lower value is more logical, especially in combination with the edittext/spinbutton. So if possible (and not too much effort) this should be changed.
Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Fri Oct 09, 2009 3:02 pm
by xnview
I've tried with 1.96.5, and up increase
Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Sat Oct 10, 2009 5:30 am
by XnTriq
How to reproduce:
- Place the mouse cursor inside the field with the spin box controls.
- Up arrow key = increases value
- Down arrow key = decreases value
- Left arrow key = no action
- Right arrow key = no action
- Click on the slider control.
- Up arrow key = decreases value

- Down arrow key = increases value

- Left arrow key = decreases value
- Right arrow key = increases value
Same behavior:
- File » Export... » JPEG » Quality
- Tools » Options... » General » Read/Write » Write » JPEG » Parameters » Quality
__________________________________
XnView v1.96.5 @ Windows 2000 SP4
Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Wed Oct 14, 2009 12:38 pm
by xnview
XnTriq wrote:
- Up arrow key = decreases value

- Down arrow key = increases value

- Left arrow key = decreases value
- Right arrow key = increases value
[/list]
It's not a bug, but the standard behaviour
Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Wed Oct 14, 2009 5:57 pm
by TheEvilHammer
I think the consensus is that this "standard behavior" is not intuitive and doesn't match up with Windows, which is why we're suggesting the change.
Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Thu Oct 15, 2009 11:04 am
by xnview
TheEvilHammer wrote:I think the consensus is that this "standard behavior" is not intuitive and doesn't match up with Windows, which is why we're suggesting the change.
I can't change it, it's the standard behavior of this windows control

Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Thu Oct 15, 2009 7:58 pm
by TheEvilHammer
xnview wrote:TheEvilHammer wrote:I think the consensus is that this "standard behavior" is not intuitive and doesn't match up with Windows, which is why we're suggesting the change.
I can't change it, it's the standard behavior of this windows control

Oh, I see what you're saying now. Really? That's very odd, considering that I've used other slider controls in Windows that didn't work that way...
Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Thu Oct 15, 2009 8:41 pm
by ckv
TheEvilHammer wrote:Oh, I see what you're saying now. Really? That's very odd, considering that I've used other slider controls in Windows that didn't work that way...
There is no need to be disrespectful.
xnview wrote:I can't change it, it's the standard behavior of this windows control

There's a trackbar control style called TBS_DOWNISLEFT (0x0400) that will reverse the up and down keys.
Re: JPEG quality slider moves the wrong way on keyboard input
Posted: Thu Oct 15, 2009 8:52 pm
by TheEvilHammer
ckv wrote:TheEvilHammer wrote:Oh, I see what you're saying now. Really? That's very odd, considering that I've used other slider controls in Windows that didn't work that way...
There is no need to be disrespectful.
What are you talking about? I was not being disrespectful to anyone. All I was saying was that I've seen the opposite behavior in Windows, which is merely an observation, and it contradicts what Pierre has noticed, making the situation "very odd", as I said.