Page 1 of 1

Old screen 80 x 24

Posted: Thu Mar 31, 2011 12:18 pm
by Kwai chang caine
Hello at all

I don't know anything at the graphic programming :oops:
But i search a code for create a virtual old screen like old IBM
I want a 80 characters by line and 24 lines.

I can do this with TextGadget, or EditorGadget, but the problem is, when i resize the gadget, the character not resizing with it :cry:
So me, i search a screen with characters resizing with the screen

Somebody know this style of code ??

Thanks and good dat

Re: Old screen 80 x 24

Posted: Thu Mar 31, 2011 2:37 pm
by IdeasVacuum
Sounds like a screen that would be for a machine running DOS rather than Windows, in which case your output would want to be console output.

Re: Old screen 80 x 24

Posted: Thu Mar 31, 2011 5:08 pm
by Zach
You could use a console, but I don't think the text would scale with a window resize.

You might want to open a 2D based Screen, with DirectX or OpenGL and use your own routines to write to the screen with bitmap fonts, or by rendering text to images and make sure your drawing routine resizes the text elements based on the screen size.

I'm sure someone around here would know how to do that..

Re: Old screen 80 x 24

Posted: Thu Mar 31, 2011 5:32 pm
by Kwai chang caine
Sounds like a screen that would be for a machine running DOS rather than Windows, in which case your output would want to be console output.
No no, it's for trying to reproduce a virtual emulator IBM like Attachmate EXTRA, i don't know if you know it.
In fact, i have two solution:
1/ Using the real program, but he works with OLE and an very hard file of parameter
2/ Create a virtual screen like him, and simulate his behaviour
You could use a console, but I don't think the text would scale with a window resize.
Yes it's that the problem :|
I'm sure someone around here would know how to do that..
Thanks, perhaps someone have o beginning of code, thanks

@All
Thanks for your answer 8)

Re: Old screen 80 x 24

Posted: Thu Mar 31, 2011 6:41 pm
by LuCiFeR[SD]
Did you not ask this question many years ago KCC? I am sure I have seen it here before...

I knew I was right.... it was back in 2007 KCC. you were doing an EGA emulator... I am pretty sure you could adapt that code to do what you want.

Re: Old screen 80 x 24

Posted: Thu Mar 31, 2011 7:15 pm
by Kwai chang caine
Yes you have a good memory, but at this moment there are not really good solution
Since this time, i say to me, perhaps there are news about this subject

Re: Old screen 80 x 24

Posted: Fri Apr 01, 2011 9:21 pm
by utopiomania
Scaling the text to the window is a bad idea, isn't it?. Who needs that? Just Open the window
in some proprtion to the users screen size and resolution, and set the font size according to that,
then let the window expand to the right and bottom if users expand it, or fix it if they try to make it smaller than the original size.

A console type screen with characters that expanded and contracted with the window size would
certainly look weird to me.

Re: Old screen 80 x 24

Posted: Sat Apr 02, 2011 4:08 pm
by Zach
But that is part of the emulating of a classic fixed resolution screen.

Just like when you load up a really old DOS game and stretch it to an arbitrary, larger resolution, everything scales bigger and looks pixelated. It's part of the appeal.

Re: Old screen 80 x 24

Posted: Sat Apr 02, 2011 7:20 pm
by Kwai chang caine
Zach wrote:But that is part of the emulating of a classic fixed resolution screen.
Just like when you load up a really old DOS game and stretch it to an arbitrary, larger resolution, everything scales bigger and looks pixelated. It's part of the appeal.
Exactely 8)

This emulator is piloted by OLE, and sometime, i need to see the background program who pilot it, and sometime i need to see just the screen move, even if the character is not lisible, just a look of all the screen like thumbail is sufficient for see what is the job it works at this moment :wink:

So like this you can resize dynamicaly the windows, in the same time the screen change all alone 8)

I'm sad to say to you you are wrong utopiomania, it's in fact the primary usual function of this emulator :D