Computer Science Canada

Starting Screen in Middle Of Monitor?

Author:  l0tt0 [ Thu Nov 20, 2003 9:41 pm ]
Post subject:  Starting Screen in Middle Of Monitor?

How do you place the screen in the middle of the monitor? So it doesn't always start at the left.

Author:  Mazer [ Thu Nov 20, 2003 9:51 pm ]
Post subject: 

code:

var win := Window.Open ("graphics:400;300")
Window.SetPosition (win, (Config.Display (cdScreenWidth) - maxx) div 2, (Config.Display (cdScreenHeight) - maxy) div 2)

change the "400;300" part to whatever screen size you want

Author:  Copler [ Thu Nov 20, 2003 9:58 pm ]
Post subject:  Easiar Way to Center the Screen

By using:


[code]
var win:= Window.Open ("graphics:800;600,position:center;truemiddle")
[/code]

You will center the window in the perfect center no matter what the size is

PS put your cursor on the window.open part and hit F9 Help Files can reeeaaallly help!

Author:  Mazer [ Thu Nov 20, 2003 10:07 pm ]
Post subject: 

well there ya go, even better

Author:  l0tt0 [ Thu Nov 20, 2003 11:54 pm ]
Post subject: 

thanks everyone...btw copler...for some reason none of my help files work :S

Author:  thoughtful [ Fri Nov 21, 2003 12:35 am ]
Post subject: 

hmm...sad...thay are actually of a lot of use.

Author:  Andy [ Fri Nov 21, 2003 6:54 pm ]
Post subject: 

unlike MSDN!!! Evil or Very Mad Evil or Very Mad Evil or Very Mad

Author:  Tony [ Fri Nov 21, 2003 8:05 pm ]
Post subject: 

haha Laughing MSDN is huge and has way too many words saying nothing Rolling Eyes

Author:  Andy [ Fri Nov 21, 2003 8:48 pm ]
Post subject: 

yea, u search for something, and after reading the intro to that function for 20 min, u realize that its for visual basic and not c++


: