Free cookie consent management tool by TermsFeed Policy Generator

Opened 9 years ago

Closed 8 years ago

#2567 closed enhancement (done)

HeuristicLab Applications do not respect their previous location and size

Reported by: mkommend Owned by: mkommend
Priority: medium Milestone: HeuristicLab 3.3.14
Component: Optimizer Version: 3.3.13
Keywords: Cc:

Description

When for example the optimizer is started and moved to another display, after restarting the application it starts again on the primary monitor. This could be quite annoying for the user and should be fixed.

A solution is to save the last location, size and window state of the opened form in the user settings and use to saved settings to position the application accordingly.

Change History (10)

comment:1 Changed 9 years ago by mkommend

  • Status changed from new to accepted

comment:2 Changed 9 years ago by mkommend

r13567: Implemented saving and restoring the window position, size and state of the optimizer.

comment:3 Changed 9 years ago by mkommend

  • Owner changed from mkommend to jkarder
  • Status changed from accepted to assigned

Could you have a look if this is also possible for the starter form in the plugin infrastructure and the splash screen.

comment:4 follow-up: Changed 9 years ago by pfleck

Please also check what default values are used in case the settings file does not contain any stored location and size.

After the last update I recompiled and then HL opened at the top left of my monitor and was scaled to the minimum size. My guess is that the location and size was set to 0, resulting in a Window so small I could not even click on because it was hidden by my taskbar.

comment:5 in reply to: ↑ 4 Changed 9 years ago by gkronber

Replying to pfleck:

Please also check what default values are used in case the settings file does not contain any stored location and size.

After the last update I recompiled and then HL opened at the top left of my monitor and was scaled to the minimum size. My guess is that the location and size was set to 0, resulting in a Window so small I could not even click on because it was hidden by my taskbar.

Same happened to me.

comment:6 Changed 9 years ago by jkarder

  • Status changed from assigned to accepted

comment:7 Changed 9 years ago by jkarder

r13586: worked on saving Location/Size/WindowState settings

  • added settings for StarterForm
  • removed ShowMaximized setting used by MainForm
  • implemented checks to fall back to default values if necessary

comment:8 Changed 9 years ago by jkarder

  • Owner changed from jkarder to mkommend
  • Status changed from accepted to reviewing

comment:9 Changed 9 years ago by mkommend

  • Status changed from reviewing to readytorelease

Reviewed r13567 and r13586.

Cool feature!

comment:10 Changed 8 years ago by mkommend

  • Resolution set to done
  • Status changed from readytorelease to closed

r13884: Merged r13567 and r13586 into stable.

Note: See TracTickets for help on using tickets.