GDI question

  • Thread starter Thread starter Terry Olsen
  • Start date Start date
T

Terry Olsen

I'm writing a terminal emulator using GDI. I've got the text thing
working..somewhat. What I'd like to do is be able to scroll back a bit and
see what has already scrolled out of the window. Is there a good way to do
this?
 
As a followup, it wraps fine, but when I'm drawing a string on the bottom
line, how do I get the rest to scroll up?
 
Terry,

The way this was always done was creating an array and see your window as a
view on that array, where the windows start every time at a arrayindex with
showing.

I hope this helps something,

Cor
 
Terry Olsen said:
I'm writing a terminal emulator using GDI. I've got the text thing
working..somewhat. What I'd like to do is be able to scroll back a bit
and see what has already scrolled out of the window. Is there a good way
to do this?

Typically you check the position of the scrollbar and draw the console/...
accordingly. If you want to scroll back programmatically, simply set the
scrollbar thumb's position. Maybe providing more details would make finding
a solution easier...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top