Article View: comp.sys.atari.st
Article #4583Re: A cursor in windows
From: Klamer Schutte
Date: Thu, 05 Oct 1989 11:26
Date: Thu, 05 Oct 1989 11:26
34 lines
2114 bytes
2114 bytes
In article <715@carroll1.UUCP> dnewton@carroll1.cc.edu (Dave 'Yes, I'm weird' Newton) writes:
#>
#> Does anyone know how to put a cursor in a GEM window? I finally figured
#>out a bunch of fun text-to-GEM-window routines, just pass in the window
Post these routines, please. Every one find this difficult;
examples help a lot.
#>handle, an x and y, and a string, it'll stick it to the window (or at least
#>in the clipping region)...
#>
#> But!!! I need to build a really simple text editor really really really
#>quickly and am having trouble doing a cursor. there's no good way to save
#>what's underneath a character (i mean, a good fast way w/o resorting to
#>assembler, and i don't know assembler on an ST too well) so i need help in
#>a big way.
There are (i think) three ways:
1 When the cursor type is not important, write the cursor in XOR mode.
delete him by writing in XOR mode again.
2 do a blit-operation to get the current character.
3 do it the "right" way: just put your cursor, and give an update event
if you want to delete him.
#>
#> Thanx in advance.
Hope this helps.
#>
#>--
#>David L. Newton | dnewton@carroll1.UUCP | Quote courtesy of
#>(414) 524-7343 (work) | dnewton@carroll1.cc.edu | Marie Niechwiadowicz,
#>(414) 524-6809 (home) | 100 NE Ave, Waukesha, WI 53186 | Boston College.
#>[Q]: How many surrealists does it take to screw in a light bulb? [A]: The fish.
Klamer.
--
_____________________Yes, mail address changed again :-(________________________
Klamer Schutte mcvax!nikhefh!{n62,Schutte} {Schutte,n62}@nikhef.nl
Technical Details
Message-ID:
<282@nikhefh.nikhef.nl>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!wugate!uunet!mcsun!hp4nl!nikhefh!n62References:
<715@carroll1.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!wugate!uunet!mcsun!hp4nl!nikhefh!n62 From: n62@nikhefh.nikhef.nl (Klamer Schutte) Newsgroups: comp.sys.atari.st Subject: Re: A cursor in windows Keywords: cursor GEM windows Message-ID: <282@nikhefh.nikhef.nl> Date: 5 Oct 89 11:26:49 GMT References: <715@carroll1.UUCP> Reply-To: Schutte@nikhefh.nikhef.nl (Klamer Schutte) Organization: Nikhef-H, Amsterdam (the Netherlands). Lines: 34