Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Looking to change the window size of a Dark GDK c++ app. Please Help.

Author
Message
waka324
16
Years of Service
User Offline
Joined: 31st Mar 2008
Location:
Posted: 1st Apr 2008 03:37
Just as the title says, and I can't quite figure out how to do this. Also, if anyone knows how to add text to these programs it could help alot as well. I am using the wizard for 2d games in VC++.

Thanks.
Scottie Dog
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location:
Posted: 1st Apr 2008 11:14
Easy enough, somewhere in your startup routine:
Michael P
18
Years of Service
User Offline
Joined: 6th Mar 2006
Location: London (UK)
Posted: 1st Apr 2008 11:56
Have a look in the DarkGDK documentation for information about any db commands. Mine is at: [href]file:\\C:\Program Files\The Game Creators\Dark GDK\Documentation\Dark GDK.chm[/href]

These commands will allow you to change the size of the window:
dbScreenWidth
dbScreenHeight

There are other display commands that you can find in the documentation.

To print text to the screen you can use:
dbPrint
dbText

To change the caption of the window you can use:
dbSetWindowTitle

Login to post a reply

Server time is: 2024-09-29 17:22:06
Your offset time is: 2024-09-29 17:22:06