Jump to content

How to make PDN to remember the last position of windows?


xod

Recommended Posts

Pixey, that's something different.

 

The floating windows are supposed to remember their positions. For some reason, it does not work for a small percentage of folks and I haven't been able to figure out why.

 

To debug and fix this I would basically need direct access to a system that this happens on (e.g. physically borrowing it, or Remote Desktop w/ administrator privilege). 

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Hi, I just registered to comment on this!

 

Rick, thanks for responding on this issue and xod for bringing it up again. I don't think this affects "only a small percentage of folks". In fact, I think this must affect a large percentage of users, the reason being:

 

I have installed v4.0.6  (also tried v4.0.5) on at least 5 different PCs, some Windows 7, and some Windows 10. All have this issue!

 

I wonder if this is a locale specific bug, as I live in Norway. The PC at work has English Windows 7 (but uses norwegian locale), the rest have Norwegian versions installed.

 

For me, this is so annoying that I use v3.5.11 - the last version where window positions sticks. Thank you for an otherwise fantastic software!

 

/edit: ps: Maximised main window does stick in v4.0.x, but that's it.

Edited by operamint
  • Upvote 4
Link to comment
Share on other sites

After several tests I found that:

 

When we change Formats in Region and Language, click on Additional settings... and in Numbers tab

it is very important that the decimal symbol of real numbers to be point and not comma.

 

In many country from Europe the decimal symbol is comma and perhaps that is an issue to calculation in PDN.

  • Upvote 2
Link to comment
Share on other sites

You may well have identified the problem xod. Great piece of detective work between you and operamint.

Link to comment
Share on other sites

Aha, well that's a little embarassing for a UI dev.

 

The size and location of the floating windows is saved to the registry as a rectangle; "x,y,width,height". It always uses the separator for US English (commas). When this string is loaded from the registry, it parses using the language you're actually using. Which, because your settings already use commas for something else, means it'll be looking for semicolon ; as a separator instead.

Fix will be to make parsing always use US English (commas!) as well.

 

This should be a super easy fix :)

  • Upvote 4

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...