This is constructed on the same base class as the other posting
of WINDERS.CPP. In this version, though, I cut back to two
window types and a listbox example. I included the ability to
use the UP, DOWN, PAGE UP, PAGE DOWN, HOME, and END keys.
ENTER will return the hi-lited entry, and ESC will return the
default entry.
This was constructed and tested with Borland C++ 3.1, so there
will need to be adjustments for output and no-scroll code if it
is to be used with another compiler. All instances of window(),
cprintf(), gettext(), puttext(), gotoxy(), clrscr(), textattr(),
and _wscroll, which are Borland specific, will need to be replaced
with an equivalent function.
> ] Some people dream in Black & White. I just dream in black...
---
---------------
* Origin: *YOPS ]I[* 8.4 GIG * RA/FD/FE * Milwaukee, WI (1:154/750)
|