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.

DarkBASIC Discussion / Full Screen

Author
Message
matty47
17
Years of Service
User Offline
Joined: 20th Nov 2007
Location:
Posted: 29th Nov 2008 20:07
I recently purchased DarkGame Studio and installed Darkbasic Classic. When I run it, it only occupies the centre portion of my screen ( like its running 640 x 480 on my 1280 x 1024 desktop although the edges around Darkbasic are black). Is there a setting to make it open its own screen and use the whole monitor? I have not been able to find it sorry.
Windows XP SP2, 7300GS Video Card with latest drivers.
Thanks
Matthew
steve paul thomas
16
Years of Service
User Offline
Joined: 4th Nov 2008
Location: United Kingdom
Posted: 29th Nov 2008 20:20 Edited at: 29th Nov 2008 20:31
I think the original DarkBASIC Classic editor (DB.exe) runs in a fixed resolution of 640x480.

That is weird that yours does that. If I run DB.exe on my computer, it drops the resolution to 640x480 and goes full-screen. If I ALT+TAB out or exit then the resolution gets reverted to the Windows one. So your situation is a strange one.

Your games, however will run at whatever resolution you ask them to (provided it is something your graphics card supports).

A while back I was looking in the Windows registry to see what DB.exe settings could be tweaked. I couldn't find a setting like that on my install.

An alternative would be to use Dark Edit or some other editor that works with your desktop resolution. That or drop your resolution temporarily.

See this post I made on the 4th November:

http://forum.thegamecreators.com/?m=forum_view&t=139478&b=10

Hope that helps (if, even just a little bit)
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 29th Nov 2008 20:50 Edited at: 29th Nov 2008 20:52
@matty47

I'm not sure how DarkGame Studio comes packaged but there should be an ini file for DarkBASIC Classic. It is called setup.ini . Under the heading

[SETTINGS]

there should be an option called

windowmode=

To have the editor be in windowed mode, set this to windowmode=1 . For the editor to be in fullscreen mode, set this to windowmode=0 .

Also like steve suggests, use an external editor like DarkEdit. It's much better than the default.

Enjoy your day.
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 29th Nov 2008 20:55
Latch, I can't find that .ini file. Could you tell me where you found it?

~QJ
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 29th Nov 2008 21:17 Edited at: 29th Nov 2008 21:26
It should install in the main directory that DB.exe installs into. If you can't find it here's a copy. Just create the file (setup.ini) and copy this code into it and save it in the directory with DB.exe. The SETTINGS sections is for the editor and debugging. The STARTUP section is so you can create your own ini files to distribute with your application. You can automatically set the window mode, position, and size of your app by changing those parameters. You can of course add your own parameters to your distributed ini file so your exe has any other behaviors or settings you create.



Enjoy your day.
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 29th Nov 2008 21:21
When i set it like this:


I get what matty is explaining.

So, Matty, if you do not have the setup.ini file in your DB folder, create it and paste what Latch has in it. That should work.

~QJ
steve paul thomas
16
Years of Service
User Offline
Joined: 4th Nov 2008
Location: United Kingdom
Posted: 29th Nov 2008 22:11 Edited at: 29th Nov 2008 22:42
@matty47

You should give DarkEdit a try. I've found some benefits to using DarkEdit over DB.exe:

You can configure fonts, colours, etc. Instead of being forced to use the oddball colours of DB.exe .

There is seperate syntax highlighting for remarks, keywords, strings and user-defined stuff (such as variables,values and subroutines). Which helps you track down silly mistakes.

The functions and labels buttons - allow you to jump directly to the associated functions and subroutines. Saves scrolling up and down all the time.

It uses the keyboard layout defined in Windows Control Panel, instead of me being forced to use US layout (which happens if I use DB.exe).

Oh and you feel like you're still in the Windows environment, instead of the "science and fantasy" interface of DB.exe. Although that is just my opinion

About the only thing weird about it; is the caption buttons in the top right hand corner. On Vista they render bigger than their actual click zone, which is odd.
matty47
17
Years of Service
User Offline
Joined: 20th Nov 2007
Location:
Posted: 29th Nov 2008 23:16
Thank you all. Excellent (and quick )work. I did have a setup.ini and the windowmode was set to 1. Setting it to 0 fixed the problem. I am using Darkedit. The screen problem also showed itself when running a program from the IDE however now all works fine
Thanks again
Matthew
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 6th Dec 2008 00:19
Quote: "About the only thing weird about it; is the caption buttons in the top right hand corner. On Vista they render bigger than their actual click zone, which is odd."


Did the same in XP for me too. To fix it (in XP, though Vista should be the same):

1. Right-click on the DarkEdit desktop icon and select 'Properties'.

2. Click on the Compatibility tab at the top.

3. Put a tick in the 'Disable visual themes' box.

4. Click the OK button.

I don't use Vista so if anyone knows if the process is any different, please feel free to post...

TDK

steve paul thomas
16
Years of Service
User Offline
Joined: 4th Nov 2008
Location: United Kingdom
Posted: 6th Dec 2008 16:30
TDK said:
Quote: "I don't use Vista so if anyone knows if the process is any different, please feel free to post..."


Yes, that fixes the problem for Vista users too Thanks

I don't Adam and believe it!

Login to post a reply

Server time is: 2025-06-07 17:31:58
Your offset time is: 2025-06-07 17:31:58