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 Professional Discussion / Editor advice needed

Author
Message
Jeff Miller
21
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: New Jersey, USA
Posted: 27th Mar 2013 13:36
I'm running DBP on a monitor with 2560 x 1440 resolution, and setting the display mode to that resolution within DBP.

Using Hyricter's Codesurge editor, the full window displays properly.

Using the DBP editor, however, the window displays offset from the top and left side and I have to then manually move it to the correct fullscreen position. When working with a 1920 x 1080 monitor, I could get it to center by pre-selecting that resolution from the DBP editor's drop down list of fullscreen resolutions. However, that list does not happen to include the 2560 x 1440 resolution I am using now. Is there another workaround?
Stab in the Dark software
Valued Member
23
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 27th Mar 2013 14:20
Do not rely on the editor for selecting your display modes.
You should be taking control using "Set Display Mode" Command.
Example: Set Display Mode desktop width(),desktop height(),32,1
Note:
In the project properties window you must pick a screen resolution that is
common to most graphics cards.
The reason being is that when you use the "set display mode" command
the compiler inserts code to check if the Display modes that are chosen in the
project properties window are valid. You will get an error that says
" Screen resolution not valid at line0".


[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
Jeff Miller
21
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: New Jersey, USA
Posted: 28th Mar 2013 00:14
I do use the set display mode command in DBP, and the resolution is valid for the card in my system, and it in fact correctly displays at that resolution. My problem is that when I compile with the DBP editor it misplaces the screen, which is at full screen resolution, so that I have to drag it to the proper location. Setting the properties window has eliminated this problem when I used other monitors, but it simply lacks a listing for the resolution of this monitor. It is not listing the proper available resolutions for my card.
Stab in the Dark software
Valued Member
23
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 28th Mar 2013 14:44
When using the "set display mode" command you need to set it to "Fulldesktop" in the
project properties window, this may be the cause.
Are you using the latest DBpro editor? Check "Help"> "About" it should say powered by synergy.
If you are using the old original editor it is no longer supported.

[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.

Login to post a reply

Server time is: 2026-07-07 02:39:08
Your offset time is: 2026-07-07 02:39:08