Upcoming Games

(UTC times)


Full list
Add a game

Upcoming Events

No events to display

Who's Online

sunocske, thereinaminute, Steamer, geswedey, Hibblejaybob, 0D07 (6 users seen recently)

Remembering window sizes and positions when saving

You are here: Home > Forum > Wishlist > Features wish list > Remembering window sizes and positions when saving

Page 1 of 1

Remembering window sizes and positions when saving 05/08/2019 at 18:51 #119881
lazzer
Avatar
603 posts
I tried searching the forum for something on this, but came up with nothing. I imagine it's been discussed before.

When I start a new sim I always find I have to stretch the main window to the side edges of my screen. I also stretch the bottom of the message window down so it shows five messages. I then shorten the top of the main window so it sits just below the message window.

Anyway, the point of all this is that when I save the sim and reload, the windows all revert to the original positions they were in when you start a new sim, so I have to re-position them all again.

Is it possible for the save to remember these positions and reload accordingly, or are there too many factors in play (such as each different user's screen resolution)?

Log in to reply
Remembering window sizes and positions when saving 05/08/2019 at 19:18 #119883
y10g9
Avatar
895 posts
At a guess, I feel that the actual sim window (the window with the clock) is a set size of X by Y pixels. The message window is defaulted to a A by B pixel size which is coded to be placed c distance to the right of the Sim window. this message window seems to default itself (at least on my screen) to 2 lines of message with there being enough space when you scroll up for a third message to be visible, but not enough for 3 lines to be seen when a new message is produced.
I'm guessing that these 2 sizes are set and happens for everyone. Then the rest of the usable space is filled with the view screen that will change in size depending on the screen resolution. On my windows 10 machine, the view is surrounded by a small border of blank so doesn't 100% will the empty space.

I too will stretch the view to fill as much of the screen as I can, and generally will stretch the messages to see at least 4 lines if I can, though I generally try and prioritise removing any need for verticle scrolling if I can, if necessary moving the Sim and message windows over to my second screen.

1 thing that I have noticed with the default window sizes, is that the message window seems to be placed with the top at the same height as the top of the sim window, but the message window is slightly shorter in height, streching the messages down by a few pixels so that it appears to be the same height as the sim window allows 3 lines of messages to be shown at the same time and stay as 3 lines when a new message is added. If there isn't the possibility to remember the last used sizes, could the message window be made slightly taller please?

I will repeat that I'm on a Windows 10 machine and this may not be the case on othere operating systems, (I can't remember if I had to slightly stretch the message window on my Windows 7 machine, or if it defaulted to 3 lines shown)

Log in to reply
Remembering window sizes and positions when saving 05/08/2019 at 20:19 #119885
Jan
Avatar
889 posts
On Windows 7 three lines fit into the message window by default - I think the problem is probably that on Windows 10 the title bar of the message window seems to have gotten fatter, hence reducing the available space.

Quote:
On my windows 10 machine, the view is surrounded by a small border of blank so doesn't 100% will the empty space

Again, the problem is that technically, the window border still exists (especially if you're querying its dimensions programmatically, and it's also noticeable in terms of the available grab area for resizing the window), it's just that Windows 10 is now drawing it transparently.

Two million people attempt to use Birmingham's magnificent rail network every year, with just over a million of them managing to get further than Smethwick.
Log in to reply
Remembering window sizes and positions when saving 05/08/2019 at 20:47 #119886
postal
Avatar
5190 posts
lazzer in post 119881 said:
I tried searching the forum for something on this, but came up with nothing. I imagine it's been discussed before.

When I start a new sim I always find I have to stretch the main window to the side edges of my screen. I also stretch the bottom of the message window down so it shows five messages. I then shorten the top of the main window so it sits just below the message window.

Anyway, the point of all this is that when I save the sim and reload, the windows all revert to the original positions they were in when you start a new sim, so I have to re-position them all again.

Is it possible for the save to remember these positions and reload accordingly, or are there too many factors in play (such as each different user's screen resolution)?
Raised as an idea for consideration on Mantis (#5774) on 03/04/2011. No comment or action to date.

“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Log in to reply
Remembering window sizes and positions when saving 06/08/2019 at 14:13 #119915
bugsy
Avatar
1695 posts
postal in post 119886 said:
lazzer in post 119881 said:
I tried searching the forum for something on this, but came up with nothing. I imagine it's been discussed before.

When I start a new sim I always find I have to stretch the main window to the side edges of my screen. I also stretch the bottom of the message window down so it shows five messages. I then shorten the top of the main window so it sits just below the message window.

Anyway, the point of all this is that when I save the sim and reload, the windows all revert to the original positions they were in when you start a new sim, so I have to re-position them all again.

Is it possible for the save to remember these positions and reload accordingly, or are there too many factors in play (such as each different user's screen resolution)?
Raised as an idea for consideration on Mantis (#5774) on 03/04/2011. No comment or action to date.
Goodness! That was 8 years ago.

I think that it's a very good idea as it does become a bit of a chore having to resize and reposition all of the windows each time you start a sim.

But, is it technically possible?
If it were to be implemented, would it not have to be made an option on start-up to cater for those who very occasionally reallocate a license to a machine which has a different number of monitors, or would everything just shrink or expand to fit automatically?

Everything that you make will be useful - providing it's made of chocolate.
Log in to reply
Remembering window sizes and positions when saving 06/08/2019 at 18:17 #119924
GeoffM
Avatar
6280 posts
bugsy in post 119915 said:
But, is it technically possible?
If it were to be implemented, would it not have to be made an option on start-up to cater for those who very occasionally reallocate a license to a machine which has a different number of monitors, or would everything just shrink or expand to fit automatically?
You hit the nail on the head with the implementation of such a feature, hence why little progress has been made.

Jan's point about borders is also true. Windows' flexibility with themes, DPI, etc make it a bit of a headache. However, I will try to ensure the message window gets 3 lines by default (I can reproduce the 2.9 line issue on a vanilla Windows 10).

SimSig Boss
Last edited: 06/08/2019 at 18:17 by GeoffM
Reason: None given

Log in to reply
Remembering window sizes and positions when saving 06/08/2019 at 18:49 #119926
SamTDS
Avatar
153 posts
GeoffM in post 119924 said:
bugsy in post 119915 said:
But, is it technically possible?
If it were to be implemented, would it not have to be made an option on start-up to cater for those who very occasionally reallocate a license to a machine which has a different number of monitors, or would everything just shrink or expand to fit automatically?
You hit the nail on the head with the implementation of such a feature, hence why little progress has been made.

Jan's point about borders is also true. Windows' flexibility with themes, DPI, etc make it a bit of a headache. However, I will try to ensure the message window gets 3 lines by default (I can reproduce the 2.9 line issue on a vanilla Windows 10).
Ive always had the 2.9 line issue probably because i have used windows 10 every time, it is only a couple of pixels from fitting and ive gotten used to resizing all the time.

The feature idea I've jut thought of how implementation could be made, save display settings like TT where users can name them for different setups and layouts. Alongside have a default settings file that always loads first when you launch a sim and have appropriate menu option to save as default, if an issue is found and people cant launch then delete the default.cfg to have the current defaults rewritten to the file and launched.
Il look into making a design board for this which can help in an interview I have next week as well.

SamTDS - STDS | My comments are my opinions and interpretations and do not reflect on the wonderfull SimSig team. I am in no way part of the team.
Log in to reply
The following users said thank you: GeoffM, postal
Remembering window sizes and positions when saving 06/08/2019 at 19:15 #119929
GeoffM
Avatar
6280 posts
SamTDS in post 119926 said:
GeoffM in post 119924 said:
bugsy in post 119915 said:
But, is it technically possible?
If it were to be implemented, would it not have to be made an option on start-up to cater for those who very occasionally reallocate a license to a machine which has a different number of monitors, or would everything just shrink or expand to fit automatically?
You hit the nail on the head with the implementation of such a feature, hence why little progress has been made.

Jan's point about borders is also true. Windows' flexibility with themes, DPI, etc make it a bit of a headache. However, I will try to ensure the message window gets 3 lines by default (I can reproduce the 2.9 line issue on a vanilla Windows 10).
Ive always had the 2.9 line issue probably because i have used windows 10 every time, it is only a couple of pixels from fitting and ive gotten used to resizing all the time.

The feature idea I've jut thought of how implementation could be made, save display settings like TT where users can name them for different setups and layouts. Alongside have a default settings file that always loads first when you launch a sim and have appropriate menu option to save as default, if an issue is found and people cant launch then delete the default.cfg to have the current defaults rewritten to the file and launched.
Il look into making a design board for this which can help in an interview I have next week as well.
It's a nice idea, though there is the additional complexity of common windows (main window with clock etc, messages) being separate to sim-specific windows (the map views). Do you have two configuration sets, one for common windows shared between all sims, and the other for sim-specific views? Or a sim-agnostic default arrangement for everything, eg for a sim you've never opened before?

SimSig Boss
Log in to reply
Remembering window sizes and positions when saving 06/08/2019 at 19:23 #119930
postal
Avatar
5190 posts
SamTDS in post 119926 said:
Ive always had the 2.9
I used to have that on my previous Windows 10 laptop with a 1368 x 768 display. Now I've got a newer machine with a 1920 x 1080 display I see about 4.2 lines.

“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Log in to reply
Remembering window sizes and positions when saving 06/08/2019 at 19:54 #119931
SamTDS
Avatar
153 posts
GeoffM in post 119929 said:
SamTDS in post 119926 said:
GeoffM in post 119924 said:
bugsy in post 119915 said:
But, is it technically possible?
If it were to be implemented, would it not have to be made an option on start-up to cater for those who very occasionally reallocate a license to a machine which has a different number of monitors, or would everything just shrink or expand to fit automatically?
You hit the nail on the head with the implementation of such a feature, hence why little progress has been made.

Jan's point about borders is also true. Windows' flexibility with themes, DPI, etc make it a bit of a headache. However, I will try to ensure the message window gets 3 lines by default (I can reproduce the 2.9 line issue on a vanilla Windows 10).
Ive always had the 2.9 line issue probably because i have used windows 10 every time, it is only a couple of pixels from fitting and ive gotten used to resizing all the time.

The feature idea I've jut thought of how implementation could be made, save display settings like TT where users can name them for different setups and layouts. Alongside have a default settings file that always loads first when you launch a sim and have appropriate menu option to save as default, if an issue is found and people cant launch then delete the default.cfg to have the current defaults rewritten to the file and launched.
Il look into making a design board for this which can help in an interview I have next week as well.
It's a nice idea, though there is the additional complexity of common windows (main window with clock etc, messages) being separate to sim-specific windows (the map views). Do you have two configuration sets, one for common windows shared between all sims, and the other for sim-specific views? Or a sim-agnostic default arrangement for everything, eg for a sim you've never opened before?
Common windows i mainly set to the same all around, sim specific windows usually is the height that has some slight adjustment. My plan is have a default that does everything to a setting (basically user sets to most common setup for them) then if there is a sim they have differently, set for that sim eg Peterborough reduced main window height.

Basically main settings file for general of everything and indervidual files for variations.

SamTDS - STDS | My comments are my opinions and interpretations and do not reflect on the wonderfull SimSig team. I am in no way part of the team.
Log in to reply