ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Move dialog boxes to the center of the (correct) monitor

<< < (2/6) > >>

jgpaiva:
Actually, that was on purpose :) It doesn't move a dialog if it is already below the mouse.
If you wish to change it, just delete the following lines (right after "move window"):


--- ---  CoordMode,Mouse,Relative
   MouseGetPos, MouseX, MouseY, MouseWin,
   If (MouseX > - WinBorder)
     If (MouseX < WinWidth + WinBorder)
       If (MouseY > - WinBorder)
         If (MouseY < WinHeight + WinBorder)
           return  

I'm not sure if this won't create other unexpected effects, though :)

David.P:
Actually, that was on purpose :)-jgpaiva (April 07, 2011, 08:40 AM)
--- End quote ---

;D I see!

Works perfect! Now FINALLY after all these years of shoving those eBay "Enlarge Image" Popups in the middle of the screen manually, they do so automatically! :Thmbsup:

(Of course, the same applies to lots of other popup windows and dialogs).

Thanks -- I'll donate!

Cheers David

jgpaiva:
 :D Glad to know it works for you!

AndyM:
Of course, the same applies to lots of other popup windows and dialogs
-David.P (April 07, 2011, 09:03 AM)
--- End quote ---
Take a look at the Include and Exclude subroutines in the original script.

If you wanted to include or exclude certain dialog boxes from going to the center of the proper screen, you could probably do that.  (I don't have a dual monitor setup so I'm not going to look into the details.)

jgpaiva:
Of course, the same applies to lots of other popup windows and dialogs
-David.P (April 07, 2011, 09:03 AM)
--- End quote ---
Take a look at the Include and Exclude subroutines in the original script.

If you wanted to include or exclude certain dialog boxes from going to the center of the proper screen, you could probably do that.  (I don't have a dual monitor setup so I'm not going to look into the details.)
-AndyM (April 07, 2011, 11:44 AM)
--- End quote ---
Actually, I think David is glad that this modification of DialogMove works for all windows ;)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version