Kameleon_ - 2024-01-05

Move to here from https://sourceforge.net/p/subtitle-workshop-classic/discussion/general/thread/1272ee2378/#4167

dellgirl - 2023-10-20

Hi,
starting with version 6.2.4, the program no longer remembers the position of the windows. I use two monitors, I set main window and 'Information and errors' on one monitor, when I start the program again, they appear overlapped on the other.

Templayer - 2023-10-20

Oh. That could be (or not) the root problem of the issue I had: https://sourceforge.net/p/subtitle-workshop-classic/tickets/18/

Kameleon_ - 2023-10-25

Hi Dellgirl,
Very possible It is related to the solution I did for what Templayer says.
It can also be the repair of https://sourceforge.net/p/subtitle-workshop-classic/discussion/general/thread/c189e6afd5/?page=1#e6a3.
I think I overdone it a little bit.
Attached a version with hopefully better behaviour.
Could you test it please?
Thanks in advance.

  dellgirl - 2023-10-25

Hi Kameleon,
thanks for the reply, and thanks for the new version.
It works well, and remembers the position of the main window and 'info and errors'. It doesn't remember other windows, but that's not a big problem.
Until now I have always used portable versions, but now I started this setup and everything seems to be fine.
Thanks once again.


  Kameleon_ - 2023-10-26

    It doesn't remember other windows, but that's not a big problem.

I am surprised to hear that. Normally every windows has its coordinates stored in the SubtitleWorkshop.ini file. They are read and used in every time the window is created.
What is wrong exactly with their position?
Thanks anyway for the problem report. At this moment I can say nothing about it, I do not see the reason for that phenomeneon.
Perhaps it is related to the fact that you are using multiple monitors.
Investigating.


dellgirl - 2023-10-26

    Perhaps it is related to the fact that you are using multiple monitors.

I suppose so.
My first monitor is a 17'' laptop which is on the right and the second is a 24'' monitor which is on the left. So, not only are there two, but they are arranged in reverse.
I like to use Subtitle Workshop on a larger (second) monitor, and I move all windows to it. But all (except the two main windows now in version 6.2.6) always appear on the smaller one (the first one).

Here's what's in the .ini file for the main and Info windows:
[Main Window]
Left=-1921
Top=5
Width=1439
Height=1009

[Information and Errors]
Width=510
Height=1031
Left=-496
Top=5

The info window is on the right next to the main window so that they take up the entire screen. Their position is now correct.
But for example the Divide Lines window. I set it in the middle of the second monitor, close it, here's what's in the ini file:

[Divide Lines]
Left=-1334
Top=256
Width=738
Height=556

But when I open the window again, it is stuck to the right edge of the first monitor and narrowed (see picture).
When I close it in that position, ini looks like this:

[Divide Lines]
Left=1334
Top=256
Width=586
Height=556

So, it does not accept a negative value for 'Left'.
I hope this helps.


Kameleon_ - 2023-10-27

I did make here the same environment (with 2 monitors) as yours (the extra monitor left hand side), and I was able to duplicate the issues you mentioned.

Attached a version that accepts negative values as left and top of all forms.
Could you please have a look? The problems should be gone.
Thanks in advance.


dellgirl - 2023-10-27

Yes, that's it. Problem solved.
Thanks a lot.
 

Last edit: Kameleon_ 2024-01-05