Author |
Message |
l0tt0
|
Posted: 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. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Mazer
|
Posted: Thu Nov 20, 2003 9:51 pm Post subject: (No 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 |
|
|
|
|
|
Copler
|
Posted: 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! |
|
|
|
|
|
Mazer
|
Posted: Thu Nov 20, 2003 10:07 pm Post subject: (No subject) |
|
|
well there ya go, even better |
|
|
|
|
|
l0tt0
|
Posted: Thu Nov 20, 2003 11:54 pm Post subject: (No subject) |
|
|
thanks everyone...btw copler...for some reason none of my help files work :S |
|
|
|
|
|
thoughtful
|
Posted: Fri Nov 21, 2003 12:35 am Post subject: (No subject) |
|
|
hmm...sad...thay are actually of a lot of use. |
|
|
|
|
|
Andy
|
Posted: Fri Nov 21, 2003 6:54 pm Post subject: (No subject) |
|
|
unlike MSDN!!! |
|
|
|
|
|
Tony
|
Posted: Fri Nov 21, 2003 8:05 pm Post subject: (No subject) |
|
|
haha MSDN is huge and has way too many words saying nothing |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Sponsor Sponsor
|
|
|
Andy
|
Posted: Fri Nov 21, 2003 8:48 pm Post subject: (No 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++ |
|
|
|
|
|
|