Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!shlump.nac.dec.com!wjg.enet.dec.com!guineau From: guineau@wjg.enet.dec.com (W. John Guineau) Newsgroups: comp.sys.amiga.advocacy Subject: Re: Hooks into the OS vs doing it all yourself (Was Re: Clueless Mac<>) Message-ID: <19435@shlump.nac.dec.com> Date: 25 Jan 91 12:59:13 GMT References: <1991Jan21.004720.25985@ncsuvx.ncsu.edu> <12880@life.ai.mit.edu> <1991Jan21.172643.20642@Neon.Stanford.EDU> <7594@sugar.hackercorp.com> <1991Jan25.075446.716@Neon.Stanford.EDU> Sender: newsdaemon@shlump.nac.dec.com Reply-To: guineau@wjg.enet.dec.com Distribution: usa Organization: Digital Equipment Corporation, Marlboro, MA Lines: 57 In article <1991Jan25.075446.716@Neon.Stanford.EDU>, torrie@cs.stanford.edu (Evan J Torrie) writes: |> From: torrie@cs.stanford.edu (Evan J Torrie) |> Newsgroups: comp.sys.amiga.advocacy |> Subject: Re: Hooks into the OS vs doing it all yourself (Was Re: |> Clueless Mac<>) |> |> peter@sugar.hackercorp.com (Peter da Silva) writes: |> |> >In article <1991Jan21.172643.20642@Neon.Stanford.EDU>, |> torrie@cs.stanford.edu (Evan J Torrie) writes: |> >> lrg7030@uxa.cso.uiuc.edu (Loren J. Rittle) writes: |> >> >most things under the MacOS, if you want it *you*, the |> programmer, |> >> >must recreate it for every program. |> |> >> Hmm. I just use a class library for most of the "common" |> actions. |> >> Takes no work at all on my part. |> |> >This is the X-windows solution. Let's load up every program with |> extra baggage |> >because the GUI/OS/whatever is inadequate. And the Mac doesn't even |> have |> >shared libraries to make this relatively painless. |> |> What kind of hooks does the Amiga have into the OS for things that |> are handled "automagically"? e.g. I recall that when a window gets |> resized, the OS handles everything for you [mouse tracking? window |> outline? new window frame?] and just sends you a "Window Changed" |> message. |> Can your program get its hooks into this event BEFORE the OS gets |> hold of it and "do its own thing"? These windows are called SMART_REFRESH, if you want to do it yourself, you tell the OS (when you create a window) that you will handle refresh events. Then you get BEGIN_REFRESH messages (or something to the effect of "it's time to fix your window") |> |> -- |> ------------------------------------------------------------------------ ------- |> Evan Torrie. Stanford University, Class of 199? |> torrie@cs.stanford.edu |> "If it weren't for your gumboots, where would you be? You'd be in |> the |> hospital, or in-firm-ary..." F. Dagg |> -- W. John Guineau grep meaning life | more Digital Equipment Corporation guineau@wjg.enet.dec.com or wjg@wpi.wpi.edu