1 Reply Latest reply on Apr 20, 2015 5:49 PM by c.wagner1

    Center window on screen



      Center window on screen


      Hello All,

      Kindly help me how to center my window on the screen. I have a simple database that I made from my laptop. 

      Opening on the laptop is fine, but when I tried to open to a desktop with a screen of 22" all my layouts looks ugly. 

      Is there any script or calculation that can be used and apply to all my layouts?

      Any help that you can extend is highly appreciated.

      Thank you.




        • 1. Re: Center window on screen

          This isn't hard to do. First set a couple of variables. Not really required but it makes things a little easier to read...

          $sh = get(screenHeight)

          $sw = get(screenWidth)

          $wh  = get(windowHeight)

          $ww = get(windowWidth)

          Then use the move/resize window script to move the window.  Set the top to ($sh - $wh)/2 and set the left to ($sw - $ww)/2.  

          Sorry for the crappy formatting, this forum does not play well with my iPad. 

          1 of 1 people found this helpful