DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Maximize on second screen?  (Read 7,944 times)

boersnoes

  • Participant
  • Joined in 2009
  • *
  • Posts: 2
Maximize on second screen?
« on: July 10, 2009, 08:38 AM »
Hi all,

I started using this nice utility today and made my own grid.
Everything is working rather nice except for one thing.
I would each of my screens (2) to have a square in the middle to maximize to that screen.
On the first screen no problem. The one on the second screen however shows up on the first screen.
I don't know if either the maximize to second screen is not working because it is hidden behind the one for the first screen (they are at the exact same position) or the functionality is not correct.

Here's the relevant part of the grid I made:

[6]
TriggerTop    = [Monitor2Height] / 3
TriggerRight  = [Monitor2Width] / 3 * 2
TriggerBottom = [Monitor2Height] / 3 * 2
TriggerLeft  = [Monitor2Width] / 3
GridTop      = Maximize
GridRight    = Maximize
GridBottom    = Maximize
GridLeft      = Maximize


PS: what forum markup is best for code? I used Teletype.

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Maximize on second screen?
« Reply #1 on: July 10, 2009, 10:22 AM »
Actually, it's the Maximize that possibly isn't correctly implemented.
Currently, it maximizes the window on the monitor where the window is and not on the monitor where the mouse is.
I suggest that you use the following workaround:
Code
[6]
   TriggerTop    = [Monitor2Height] / 3
   TriggerRight  = [Monitor2Width] / 3 * 2
   TriggerBottom = [Monitor2Height] / 3 * 2
   TriggerLeft   = [Monitor2Width] / 3
   GridTop       = [Monitor2Top]
   GridRight     = [Monitor2Right]
   GridBottom    = [Monitor2Bottom]
   GridLeft      = [Monitor2Left]

ps: there's a [Code][/Code] tag for posting code on the forum.

boersnoes

  • Participant
  • Joined in 2009
  • *
  • Posts: 2
Re: Maximize on second screen?
« Reply #2 on: July 10, 2009, 10:24 AM »
Yes, that's what I first had, but that doesn't really maximize.
Thanks for the reply though.

Original address: https://www.donationcoder.com/forum/index.php?topic=19120.0