home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 16
/
016.d81
/
t.windowing
< prev
next >
Wrap
Text File
|
2022-08-26
|
3KB
|
161 lines
Simple Windowing
Written by: Bruce Jaeger
Simple Windowing for the Commodore 64
Commodore Microcomputers, October 1985
Page 60
If you've ever seen a Macintosh (or
similar mock-up), then you know
exactly what a window is. If you
don't know what a window is, then
here is a brief explanation.
Windowing is the practice of setting
aside part of the computer's display
(monitor screen) for things like help
menus, extra commands, and the like,
and then being able to restore the
screen to its original state when the
window is removed. One of the most
useful aspects of windowing is
allowing the computer user to access
valuable information (such as help
screens) and then returning to his
original display without losing the
information that was on that screen.
This program allows you to use
windows in your own programs. When
you RUN the program, it will POKE in
a machine-language routine to do the
dirty work. After placing the
routine in memory, you will be shown
a small demonstration of what you can
do with windows. Remember, this is a
very simple demonstration. After you
master the technique, the
applications are limitless. With
some thought and creativity, you can
come up with some extraordinary
ideas.
The machine-language routine is
really divided into two distinct
parts. The first part of the routine
is activated by using a SYS 49152.
This SYS will activate the 'memorize
screen' part of the routine.
Whenever you use a SYS 49152, the
machine-language routine 'memorizes'
the text screen memory as well as the
color memory and puts them away in a
safe place. For all you technical
people, the text screen is put away
starting at $C100 while the color
memory is put aside starting at
$C500.
After 'memorizing' your text
screen, you can do whatever you want
to your screen. We've already
mentioned displaying things like help
screens and extra commands that are
available to the user. When you (or
the user) are ready to go back to the
original screen, all you need is a
SYS 49216. This restores the screen
to the state it was in when it was
'memorized'. In other words, the
screen will look just like it did
before you executed the SYS 49152.
Remember, use SYS 49152 to
'memorize' a screen and use SYS 49216
to recall the memorized screen.
This program is copyrighted by
Commodore magazine. All rights to it
are reserved. LOADSTAR has relieved
you from the burden of keying in this
program. For more complete
information about this program, refer
to the October 1985 issue of
Commodore Microcomputers magazine.
>Files used: WINDOWING
----------< end of article >----------