Page 1 of 1

How do you center a window?

Posted: Sat Feb 09, 2008 2:27 am
by no1g8tor
I searched all over the forum but cant seem to find. I want my application to open up in the middle of the screen. I understand that there are different sizes and resolutions.

Please let me know what it the way to detect the size, res and how to center.

Thanks in advance.

Posted: Sat Feb 09, 2008 2:44 am
by paul_gr
Use this.

on openStack
set the loc of this stack to the screenloc
end openStack

Paul

Posted: Sat Feb 09, 2008 3:02 am
by no1g8tor
Paul,

Thank you. It works perfect.