bsamuels
October 18th, 2002, 11:04 AM
In windows 2000 and XP, the console window scrolls, can this functionality be added to a program so the console scrolls when the .exe is run under Win 95 and Win 98
|
Click to See Complete Forum and Search --> : scroll the console bsamuels October 18th, 2002, 11:04 AM In windows 2000 and XP, the console window scrolls, can this functionality be added to a program so the console scrolls when the .exe is run under Win 95 and Win 98 JMS October 18th, 2002, 12:55 PM In a word... yes. What you have to do is edit the properties of the command session. Go to the System menu -> properties menu item. Increase the buffer size and if your screen size is less than the buffer size then the scroll bar will appear automajically. Remember the properties you're changing are actually stored in a .pif file associated with that cmd.exe file. So if you're programatically openning the command session you'll want to be sure that the cmd.exe file and/or the associated .pif file ( usually called cmd.pif or command.pif are in your execution directory else the first one found on the path will be used. If you have any troubles re-post and well help you out. bsamuels October 18th, 2002, 03:06 PM Thanks for your quick reply. I had a look and found the buffer data as you indicated. I'm working in Win XP and want the console to be compatable with Win 95/98. The buffer settings were sufficient in XP but, no scroll bar in 98. Where do I find the associated .pif file you mentioned. I searched and turned up nothing. Thanks cup October 18th, 2002, 03:44 PM On windows 9x, the only console sizes are 25, 43 and 50. You can set them using the mode command, eg mode con: lines=50 You can't set them any bigger than that: it is just a hangover from the DOS days. bsamuels October 18th, 2002, 08:47 PM Okay cup but will it scroll in Win9x? codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |