topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • November 22, 2019, 04:20 AM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: GridMove Window Snap: Window Edges: Inherent margin?  (Read 1217 times)

MBfromOK

  • Participant
  • Joined in 2019
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
GridMove Window Snap: Window Edges: Inherent margin?
« on: February 12, 2019, 09:01 AM »
I am building my custom grid (will post soon) and am trying to resolve an issue where resized windows leave a gap I didn't program.

Using this code for my vertical window split:
[2] ;Left Half

  TriggerTop    = [Monitor2Top] + 2 * ([Monitor2Height] / 12) + 5
  TriggerBottom = [Monitor2Top] + 3 * ([Monitor2Height] / 12) - 5
  TriggerLeft   = [Monitor2Left] + 10
  TriggerRight  = [Monitor2Left] + ([Monitor2Width]  / 24)
  GridTop       = [Monitor2Top]
  GridBottom    = [Monitor2Bottom]
  GridLeft      = [Monitor2Left]
  GridRight     = [Monitor2Left] + ([Monitor2Width]  / 2)
 
[3] ;Right Half

  TriggerTop    = [Monitor2Top] + 2 * ([Monitor2Height] / 12) + 5
  TriggerBottom = [Monitor2Top] + 3 * ([Monitor2Height] / 12) - 5
  TriggerLeft   = [Monitor2Left] + ([Monitor2Width]  / 24)
  TriggerRight  = [Monitor2Left] + ([Monitor2Width]  / 12) - 5
  GridTop       = [Monitor2Top]
  GridBottom    = [Monitor2Bottom]
  GridLeft      = [Monitor2Right] - ([Monitor2Width]  / 2)
  GridRight     = [Monitor2Right]

There is a 5 - 10 pixel margin on all edges of the resized the windows (on my 1920x1080 monitor).

I tried adding x pixels to the Grid options to remove it like this:
  GridLeft      = [Monitor2Right] - ([Monitor2Width]  / 2) + 5

but when the window resizes it drops the size back to contain the margins.

I have had a glance through the settings and don't see anything that would seem to effect this... Help!

[Edit] This might just be a visual bug??? When I put my mouse against a monitor edge it shows the resize arrow cursor and if I click and drag it resizes the correct window.
 Seems like the window is sized correctly but being underdrawn / scaled down some amount.[/Edit]

[Edit 2] This margin is missing when I use the built in Maximize parameter.[/Edit 2]
« Last Edit: February 12, 2019, 09:24 AM by MBfromOK, Reason: Adding resize & margin notes »

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,378
    • View Profile
    • Donate to Member
Re: GridMove Window Snap: Window Edges: Inherent margin?
« Reply #1 on: February 12, 2019, 12:40 PM »
Let me guess: You're on Windows 10?

MBfromOK

  • Participant
  • Joined in 2019
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: GridMove Window Snap: Window Edges: Inherent margin?
« Reply #2 on: February 15, 2019, 07:30 AM »
Yeah... Is that a thing?

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,378
    • View Profile
    • Donate to Member
Re: GridMove Window Snap: Window Edges: Inherent margin?
« Reply #3 on: February 15, 2019, 12:35 PM »
Well, Windows 10 puts a default transparent shadow around any non-maximized window of ca. 5-10 pixels. That is most likely what you are seeing. You probably can't 'fix' it as it isn't broken, but designed that way.