INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Issue with screen size

Issue with screen size

(OP)
I was working on a Qbasic game in DOSbox. I changed the DOSbox settings to display all the characters at 6x8 pixles. The change somehow applied to full screen mode, and the program as it was run itself.

The effect was that my output screen had space for about 40 lines of text, and I made the program around this. I can't seem to get it back like that, and therefore can't run it anymore.

Any help anyone could offer would be great.

RE: Issue with screen size

Have you tried Ctrl-Enter ?
(hol Ctrl down and press the Enter key)

RE: Issue with screen size

also, you can reference the old guides on setting screen parameters from within QB, or from a batch file...

I believe this is the format for a batch file (or for manual changes from the DOS prompt

CODE

set screen cols = xxx
set screen rows = yy

I hope this helps;
robherc

RE: Issue with screen size

I think that the SCREEN COLS and ROWS function will return the ASCII value of the character at that location.

It sounds to me that the problem mailbox061583 is having is related to DOSBox and not QBASIC. This may have to do with  a display setting in the DOSBox config file. The screen resolution in DOSBox can be controlled in the config file.
 

RE: Issue with screen size

I think that the SCREEN COLS and ROWS function will return the ASCII value of the character at that location.

It sounds to me that the problem mailbox061583 is having is related to DOSBox and not QBASIC. This may be related to a display setting in the DOSBox config file. The screen resolution in DOSBox can be controlled in the config file.

RE: Issue with screen size

Sorry for the double post. Having IE trouble.

RE: Issue with screen size

That code block was written in batch, not QBasic...those are DOS shell commands for changing the screen configuration. There is a QB command to set those parameters (I know, because I've used it) from within your program but, unfortunately I don't remember it at the moment.

I hope this helps;
robherc

RE: Issue with screen size

Oops, I used the wrong code block anywise...

CODE

mode con cols=xxx
mode con rows=yy

...Don't quote me still, but I THINK those are the right commands...will verify later, when I'm not on my BlackBerry (no DOSbox)

I hope this helps;
robherc

RE: Issue with screen size

ok, now that I'm on a "real" computer again:

CODE

mode con cols=100 lines=50
sets your DOSbox to display 100chars wide by 50 chars high...use the commands from the c:\> prompt, or in a batch file winky smile

I hope this helps;
robherc

RE: Issue with screen size

I am not sure if I am answering the question or not. It sounds like your use of a font which along with going to certain graphics modes causes the qbasic window to modify the shortcut properties value for options to full screen and you need to right click on the shortcut and goto properties-options-full screen & change it to windows and save.
                                

I hope this might be what you wanted.

Computer thought: I teach a lot of programming so I can learn. You can never learn it all.  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close