Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Starting Screen in Middle Of Monitor?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
l0tt0




PostPosted: 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
Sponsor
sponsor
Mazer




PostPosted: 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




PostPosted: 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




PostPosted: Thu Nov 20, 2003 10:07 pm   Post subject: (No subject)

well there ya go, even better
l0tt0




PostPosted: 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




PostPosted: Fri Nov 21, 2003 12:35 am   Post subject: (No subject)

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




PostPosted: Fri Nov 21, 2003 6:54 pm   Post subject: (No subject)

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




PostPosted: Fri Nov 21, 2003 8:05 pm   Post subject: (No subject)

haha Laughing MSDN is huge and has way too many words saying nothing Rolling Eyes
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Sponsor
Sponsor
Sponsor
sponsor
Andy




PostPosted: 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++
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 9 Posts ]
Jump to:   


Style:  
Search: