Menu

Remember screen pos and size, multi-monitors

2007-03-14
2012-11-13
  • Rolf Kalbermatter

    Notapad++ remembers the screen size and position when it was opened and uses that on subsequent sessions. This is a good feature but it is not implemented completely for setups with changing multi-monitor setups.
    This makes itself apparent when you edit for instance on a multi-monitor setup such as when I in my office with my notebook and have placed the notepad++ window on the secondary screen. When on the road I only have the built in display and when I open a new notepad++ session the window is placed outside of the visible area. You can click in the taskbar to maximize the window to get to it but to make notepad++ start up on the primary display one has to go to the directory and delete the last used pos in the XML ini file.

    When opening a new window, notepad++ should check the last remembered pos and size to at least intersect some of its top-right or top-left area with the valid desktop area. This can be a bit tricky depending on what Windows versions needs to be supported since older Windows versions such as 95 did not have a multi monitor API. But there is sample code in the Windows SDK how to dynamically link to the multi-monitor API to enumerate the different desktop rectangles that a multi-monitor setup can consist of and that simply returns a single desktop for non-supported platforms.

     
    • Nobody/Anonymous

      +1 - This gets me whenever I work anywhere that's not my desk with the second monitor attached to my laptop's docking station.

      Please consider this as another vote for this feature for a future release.