Page 1 of 1

.ini option to ResetXY to Top-Middle

Posted: Tue Feb 07, 2012 12:02 pm
by AndyHazz
The ini file currently gives the following options for ResetXY when viewing images:
ResetXY
Changes the default image X/Y position when viewing images.
  • 0. Middle of the image.
  • 1. Top-left of the image.
  • 2. Top-right of the image.
Value: Integer (0-2), default value is 0
Note: ResetXY setting does have a UI, only value 2 cannot be set through the options dialog.
(the above info was from here: http://wiki.xnview.com/index.php/UI-less_Settings#View)

What would be really useful for me is a fourth option ...
  • 3. Top-middle of the image.
This is because I often use XnView for previewing mock-designs for centrally aligned webpages, where I want the image to open at the top in the centre, as a webpage would.

Whilst you're at it, it'd probably make sense to fill out the other options that others may find useful:
  • 4. Middle-left
  • 5. Middle-right
  • 6. Bottom-left
  • 7. Bottom-middle
  • 8. Bottom-right
Thanks!

Re: .ini option to ResetXY to Top-Middle

Posted: Tue Feb 07, 2012 1:02 pm
by Peter2
...Note: ResetXY setting does have a UI, only value 2 cannot be set through the options dialog.
Where to find?

Peter

Re: .ini option to ResetXY to Top-Middle

Posted: Tue Feb 07, 2012 3:06 pm
by AndyHazz
The UI setting for Reset X/Y is in Options>View, it's just a checkbox.

I think it's either off (unchecked) or on (checked) and set to value 1 (reset X/Y to top-left).
To get any other alignment you have to edit the .ini

Re: .ini option to ResetXY to Top-Middle

Posted: Tue Feb 07, 2012 3:36 pm
by Peter2
Thanks, I found it.

Peter

Re: .ini option to ResetXY to Top-Middle

Posted: Tue Feb 07, 2012 5:56 pm
by JohnFredC
Something like this would be useful:

Image

Re: .ini option to ResetXY to Top-Middle

Posted: Thu Mar 08, 2012 5:27 pm
by AndyHazz
Exactly like that ... did you mock that up or is it from another application?

Although it'd be more user friendly to have this configured in the UI like that screenshot, if it means it's more likely to get done then a simple extension of the exisiting .ini file options would be great.

Re: .ini option to ResetXY to Top-Middle

Posted: Thu Mar 08, 2012 7:02 pm
by JohnFredC
It's only a quick mockup, unfortunately.