Page 1 of 2

Toggeling between fit to window and 100%

Posted: Sun Jun 10, 2007 5:53 pm
by wolfgangbeyer
Hi,

Me and I think most other users often like to toggle in the image view mode between fitting the image to window and zoom 100% for analysing. I think this is one of the most frequent actions at all. I like to suggest to define the "Z" key for toggling between these two zoom values. The existing keys "/" and "*" for that are very cumbersome to bear in mind and very inconvenient. One single key just for toggling is much faster (in a german keyboard even the shift key is necessary for both). And finally it would perfectly complete the set of existing toggling keys "Enter" and "F" for navigation between the most important views and modes.

If the actual image neither fits into the window nor zoom is 100% I would suggest the "Z" key fitting the image into the window (large only, otherwise 100%). This way "Z" would provide a comfortable reset to the usual default zoom value for instance after manual changing the zoom factor.

This way XnView would become more perfect as it already actually is ;-).

Posted: Sun Jun 10, 2007 10:54 pm
by Dreamer
FAQ: How to change, or/and create new keyboard shortcuts

You must use Commands list as command and numbers of commands for * and / as parameters.

If you need more help, just ask. ;)

NumPad

Posted: Mon Jun 11, 2007 4:20 am
by Clo
—> wolfgangbeyer

:) Hello !

• The keys “/” and “*” of the numeric pad work the same…

- Moreover, they are located beside one other (at least here) and don't need any modifier…

:mrgreen: VG
Claude
Clo

Posted: Mon Jun 11, 2007 7:41 pm
by wolfgangbeyer
Hi Dreamer, I noticed this FAQ already before I made this suggestion. But I had the impression that this way it is only possible to replace some hotkeys by others. This would not offer the possibility to define the toggling key with the properties as I described. Therefore I made my suggestion.

Hi Claude, this is a solution for a PC but not for laptops. I don't know if many people even on a PC find this solution especially those who never use the num pad like me for instance. I overlooked "/" and "*" on the numeric pad, because the symbols on the keys look different like ".|." turned by 90° and a cross like "X". For me your answer is fine because I have a PC and no laptop, Thank you ;-).

Posted: Sun Jun 17, 2007 3:49 pm
by AlterMann
I agree. Most used zoom modes are 100% and Fit to window. So maybe there should be a toolbar button command for this toggle function.

Posted: Sun Jun 17, 2007 11:02 pm
by Dreamer
I have suggested also a mouse shortcut to toggle between these, currently there is one useful shortcut, but it's only "fit image to window" - right button+left button (and vice versa).

Posted: Wed Jul 04, 2007 6:37 pm
by wolfgangbeyer
I just found an additional drawback of the keys "/" and "*" for "fit to window" and 100% respectively: In case of large images, 100% corresponds with a magnification relative to "fit to window", and in this case the keys "/" and "*" makes sense. But for small images where 100% is smaller than "fit to window" these 2 keys are rather confusing because they seem to cause the opposite effect.

<b>So we have 2 arguments for a key like Z</b> (as "Zoom") for toggeling between 100% and "fit to window":
1.: "/" and "*" are inconvenient for laptops without numeric pad.
2.: "/" and "*" seem to work in opposite way for small images.

By the way: I also miss a button in the toolbar for "fit to window" (There is obviously no "cmd_FitToWindow"). There is only one for 100% (cmd_Zoom100).

Posted: Fri Jul 20, 2007 12:46 am
by oops66
Toggeling between fit to window and 100%zoom is a good idea (only one button in the toolbar), and/or an associated shortkey.

Posted: Fri Jul 20, 2007 2:41 pm
by JohnFredC
I really like the way FastStone does this: just press and hold the left mouse button to instantly see the image at 100%. Moving the mouse scrolls the image. Releasing the mouse button returns to "fit to window".

This behavior becomes second nature immediately.

However, it might be difficult to enable it AND simultaneously support all the other mouse modes/behaviors we are accustomed to in XnView.

Posted: Sun Jul 22, 2007 12:43 am
by oops66
Me too, I prefert the Fastone zoom behavior !
Its is more "Natural"

But Xnview is better for the others stuffs... can add vidéo files and is more "customisable"... - it's the best.

"However, it might be difficult to enable it AND simultaneously support all the other mouse modes/behaviors we are accustomed to in XnView."

I know, but nothing is impossible !

Posted: Sun Jul 22, 2007 3:27 pm
by Dreamer
oops66 wrote:"However, it might be difficult to enable it AND simultaneously support all the other mouse modes/behaviors we are accustomed to in XnView."

I know, but nothing is impossible !
Right, but there are too many mouse modes, shortcuts...

I think the mouse shortcut (right+left button) to toggle Fit to window / 100% would be even better - especially with the other mouse shortcuts. These mouse shortcuts are available:

Previous/next image / Scroll / Zoom (customizable) - wheel
Fit image to window, large only - LMB+RMB *
Fit image to window, large only - RMB+LMB *
Lock zoom - LMB+MMB
Lock zoom - RMB+MMB
Zoom + / - - LMB+wheel
Zoom + / - - RMB+wheel

LMB = left mouse button
MMB = middle mouse button
RMB = right mouse button
wheel = mouse wheel

* this one should be changed to toggle Fit to window / 100%

Posted: Sun Jul 22, 2007 4:24 pm
by oops66
Why not !
But using keys mouse like : Zoom + / - - RMB+wheel is not natural too.

May be the best way is to add an option case in the config menu to enable zoom behavior like "faststone" OR zoom behavior like "previus version of Xnview" . ( to skip a part of the Xnview program mouse config ) ?

Posted: Sun Jul 22, 2007 4:47 pm
by Dreamer
RMB+LMB is very easy to use, almost as LMB only, and you don't have to hold left button all the time, RMB+wheel is just a plus - custom zoom.

Of course, both alternatives might be implemented, if possible, as option.

Posted: Sun Jul 22, 2007 5:07 pm
by oops66
"RMB+LMB is very easy to use, almost as LMB only, and you don't have to hold left button all the time, RMB+wheel is just a plus - custom zoom."

In this case you are right !
But ergonomics functions must be always implemented when it is possible for usuals tools.

Posted: Mon Jul 23, 2007 8:03 am
by xnview
JohnFredC wrote:I really like the way FastStone does this: just press and hold the left mouse button to instantly see the image at 100%. Moving the mouse scrolls the image. Releasing the mouse button returns to "fit to window".
So an option to have this feature in fullscreen with LMB?