And again...

[expired user #360]'s profile image [expired user #360] posted 10 years ago in General Permalink
...HEIDI doesn't remember last window position on dekstops with two monitors :-(

For some versions it worked fine, now this anoying fault is back again (8.1.0.4614). Don't know exactly since when.
ansgar's profile image ansgar posted 10 years ago Permalink
You mean the position or the dimensions?

No clue in which version that worked?
ansgar's profile image ansgar posted 10 years ago Permalink
Confirmed. Only the dimensions are restored, not so the position. Sorry. Will check that.
ansgar's profile image ansgar posted 10 years ago Permalink
Even more: The "maximized" state of the main window is also stored correctly. So, this is what I have to fix:
* the x/y coordinates of the non-maximized window
* the monitor index
[expired user #360]'s profile image [expired user #360] posted 10 years ago Permalink
Exactly!
Code modification/commit from ansgar.becker, 10 years ago, revision 8.1.0.4624
Set position property of main form from poDefaultPosOnly to poDesigned, with which we are able to set the left + top coordinates in OnCreate.
See http://www.heidisql.com/forum.php?t=13944 and http://www.heidisql.com/forum.php?t=13858
ansgar's profile image ansgar posted 10 years ago Permalink
Hopefully fixed in r4624.

What I can just not test here is the multi-monitor relevance here. But that seems irrelevant to this issue, as the position was also not restored on a single-monitor computer.
[expired user #360]'s profile image [expired user #360] posted 10 years ago Permalink
Downloaded and installed r4626 and window remembers, on which monitor it was last. It doesn't remember the exact position, just if it was closed on monitor 1 or monitor 2.

The next time it gets opened on the last monitor. But that is ok.

I tested it dragging it to the middle in between both screens and on next start it takes one monitor and starts in the dimensions it was before, but opens completely on one monitor, not in the middle between again.

So the EXACT last position is not saved!
ansgar's profile image ansgar posted 10 years ago Permalink
Ok, that's due to the call to
MakeFullyVisible(MonitorIndex)

which shall just prevent the main window from being partially invisible, especially when your screen resolution has changed inbetween! But I guess I can also tweak that.

Please login to leave a reply, or register at first.