Center opening layout
I've created a layout which has some pretty buttons that allow my user to go to the places he needs to. I'd like this to position itself center when it opens. I don't want to maximize as the layout is smaller than a full window.
I've found some scripts which call height and width /2 etc (I fully understand the idea of that) but when I go to create a custom script it says it can't find 'dimension' (which was one of the variables I found on the net).
I just want to make my opening layout center itself on the screen, anybody any ideas how to do this simply?