How do you center a window?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
no1g8tor
Posts: 62
Joined: Fri Nov 23, 2007 3:01 pm

How do you center a window?

Post by no1g8tor » Sat Feb 09, 2008 2:27 am

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.

paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm
Location: Blenheim, New Zealand

Post by paul_gr » Sat Feb 09, 2008 2:44 am

Use this.

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

Paul

no1g8tor
Posts: 62
Joined: Fri Nov 23, 2007 3:01 pm

Post by no1g8tor » Sat Feb 09, 2008 3:02 am

Paul,

Thank you. It works perfect.

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”