Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dos application on windows 2000 only half screen

Status
Not open for further replies.

roggy

Programmer
Nov 26, 2001
5
US
My dos database application works on windows 2000 on fat 32 file structure, but it only uses the top half of the window when run at full screen. How can I fix this problem?
 
Hi Roggy
Right click on the icon and go to properties then layout and make both Screen buffer size and Windows size Width=80 and Height=25. Options has a Windowed/Full Screen options. Ian Boys
DTE Systems Ltd
 
I've seen this problem being related to the screen resolution being too high, and the window property settings didn't help, nor the full screen choice.

If Bozz' suggestion doesn't do the trick, experiment with your window screen settings.

Good luck
 
If it's a full screen problem then I don't think it's going to be related to resolution. By default W2K full screen tries to give you more than 25 lines. How kind, if somewhat confusing of MS. Ian Boys
DTE Systems Ltd
 
Thanks all. The screen resolution played a major role in solving the problem, but the major factor in getting the window to fill my screen was selecting a larger font size. The window size and screen buffer size seemed to have little effect. Also I set the properties on the application exe itself rather than just the properties of the batch file shortcut calling the program. I still can't fine tune it to fill the whole screen, but it is now an acceptable and workable window size. Once again, thanks for the speedy replies.
 
If by full screen you mean not in a Window, hold down the Alt key and hit enter. This toggles between DOS mode and Windowed. Ian Boys
DTE Systems Ltd
 
If you use cmd.exe as the shorcut target you will get the
options and layout tabs.

e.g.

Target: %SystemRoot%\system32\cmd.exe /c c:\app\myapp.exe

Start In: c:\app

The /c after cmd.exe means run the following program.

Full screen is in Options

Buffer and window size in Layout
 
This problem (or a 2 similar ones) nagged me for a while. We run a clipper application on a network with XP workstations. I wanted to run the application in full screen mode, and even though I would change the layout settings to 80x25 and full screen, I'd get a full screen (i.e. not a window) but with my stuff scrunched on the top half of the screen. I'm not sure why what I've done works, but here is what works for me:

For the cmd.exe, command.exe, (myprogram).exe, and/or any included batch files, I change their properties as follows. As expected under the options tap I select Full Screen. I don't think this part matters, but under the Font tap I select TT Lucida. Under the Layout Tab I do a few things. As expected I change the Layout to 80x25. Then I uncheck the "Let system position window" box so I can edit the windows position numbers. I then change both the settings (Left and Top) to -4. Then I recheck the "Let system position window" box.

This all worked great for me until I would print from the application, then I'd have to restart the application to fix the screen. The workaround for that is to stop sending print files to an LPT port and instead use the xp print command as follows:
torun="C:\I386\PRINT /D:\\NETWORKNAME\NAMEOFPRINTER "+ MYFILETOPRINT

Since I implemented these changes I have not had the half-size/full screen problem.
 
Add in the batch file that calls your app exe file the following line:

mode con: cols=80 lines=25

It works fine, in a real dos screen.
Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top