Path: 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: Sender: usenet@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 15 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