Article View: comp.sys.atari.st
Article #6294Text in a GEM Window
From: David Megginson
Date: Thu, 30 Nov 1989 02:38
Date: Thu, 30 Nov 1989 02:38
15 lines
1222 bytes
1222 bytes
There are some fast and nasty shortcuts, but you _should_ put text in
a GEM window by calling v_gtext() (or something like that) _only_ in
your redraw function, or when you have to draw a new character in the
window. _Never_ draw to a window unless
1) You check to make sure that it is the top window
2) You walk through the wind_get() rectangle list, and clip
to each of those rectangles while you redraw the window.
It's difficult. The AES will tell you when to redraw different areas
of your window, and you have to be ready to respond. Keep track of
the text in a separate array or linked list, so that you know what to
put in the window when redraw time arrives.
David Megginson, Centre for Medieval Studies, Toronto
Technical Details
Message-ID:
<89Nov29.214314est.58002@ugw.utcs.utoronto.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!vm.epas.utoronto.ca!MEGGINReferences:
<INFO-ATARI16-REQUEST@WSMR-SIMTEL20.ARMY.MIL>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!vm.epas.utoronto.ca!MEGGIN From: MEGGIN@vm.epas.utoronto.ca (David Megginson) Newsgroups: comp.sys.atari.st Subject: Text in a GEM Window Message-ID: <89Nov29.214314est.58002@ugw.utcs.utoronto.ca> Date: 30 Nov 89 02:38:08 GMT References: <INFO-ATARI16-REQUEST@WSMR-SIMTEL20.ARMY.MIL> Sender: usenet@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 15