[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

TortoiseMerge - File Patches tool window positioned on desktop but off screen

From: Bruce J Clark <BJClark_at_metrol.co.uk>
Date: Wed, 3 Aug 2016 10:28:56 +0000

Hi,

I've checked the Users forum and the ticket system but I can't find this issue reported.

I'm having a problem with TortoiseMerge when trying to apply a patch, where the File patches tool window is positioned off-screen. If the tool window is positioned off the desktop area, it is automatically moved onscreen but this doesn't occur when the tool window is positioned within the desktop area but in an area where there is no screen.

I have a 4 monitor system. The primary monitor is in the centre and then there are additional monitors on both sides and then one above. This creates voids in the desktop area above the left and right monitors (i.e. to the left and right of the top monitor).

The patching process is initiated by right clicking the patch file and selecting the "TortoiseSVN | Apply Patch..." context menu item. This starts the TortoiseMerge application, with the main window displayed in the position from the previous execution.

If the main application window position is on the central monitor, the File Patches tool window is displayed to the left of the main application window, aligned with the top of the main application window. Everything is visible and all is well.

If the main application window position is on the right monitor, the behaviour is the same. Again, everything is visible and all is well.

If the main application window position is to the left edge of the left monitor, the File Patches tool window is drawn on the left side of the central (primary) monitor. While the File Patches tool window isn't in the usual location, everything is visible and all is well.

If the main application window is to the left edge of the top monitor, the File Patches tool window is drawn to the left of the main application window. In this case the File Patches tool window is NOT visible and there is no visual indication how to apply the patch changes.

The solution would seem to be to detect that the File Patches tool window is off-screen and redraw it, as is done when it is off-desktop. Perhaps the MonitorFromPoint function (https://msdn.microsoft.com/en-us/library/windows/desktop/dd145062%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396) would be helpful for this.

The actual monitor/desktop layout is reported below, where the top monitor is Monitor 2:
Desktop
  Width: 8320
  Height: 3240
  Left: -1920
  Top: -1080
  No Of Monitors: 4
Monitor 1
  Name: \\.\DISPLAY1
  Width: 1920
  Height: 1080
  Left: -1920
  Top: 553
  Workspace
    Width: 1920
    Height: 1080
    Left: -1920
    Top: 553
Monitor 2
  Name: \\.\DISPLAY2
  Width: 1920
  Height: 1080
  Left: 831
  Top: -1080
  Workspace
    Width: 1920
    Height: 1080
    Left: 831
    Top: -1080
Monitor 3 (Primary)
  Name: \\.\DISPLAY4
  Width: 3840
  Height: 2160
  Left: 0
  Top: 0
  Workspace
    Width: 3840
    Height: 2120
    Left: 0
    Top: 0
Monitor 4
  Name: \\.\DISPLAY5
  Width: 2560
  Height: 1440
  Left: 3840
  Top: 0
  Workspace
    Width: 2560
    Height: 1440
    Left: 3840
    Top: 0

Regards,
Bruce

This email and any attachments or links herein are confidential and may contain Metrol Technology Limited proprietary information that is legally privileged or otherwise protected from disclosure. It is solely intended for the person(s) named above. If you are not the intended recipient, any reading, use, disclosure, copying or distribution of all or parts of this email or associated attachments or links to other web locations, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message or by telephone and delete this email and any attachments or links permanently from your system. Metrol accepts no liability for any damage of whatever nature caused by this email.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3181041

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2016-08-03 13:19:58 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.