Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.sys.amiga.advocacy Subject: Re: Hooks into the OS vs doing it all yourself (Was Re: Clueless Mac<>) Message-ID: <7658@sugar.hackercorp.com> Date: 30 Jan 91 12:09:47 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> Reply-To: peter@sugar.hackercorp.com (Peter da Silva) Distribution: usa Organization: Sugar Land Unix - Houston Lines: 28 In article <1991Jan25.075446.716@Neon.Stanford.EDU> torrie@cs.stanford.edu (Evan J Torrie) writes: > 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. Yep. > Can your program get its hooks into this event BEFORE the OS gets > hold of it and "do its own thing"? Nope. You can tell Intuition the bounds you're willing to let the user manage the window within, but that's it. > Also, what exactly happens with scrollbars? (sorry for my > preoccupation with scrollbars, but they're interesting things :-) ) > When you click and hold down on a scroll arrow, how does the OS "know" > when you've scrolled to the end of a document? Amiga scrollbars (proportional gadgets) don't have arrows. If you see an arrow the application is managing two gadgets together. But if you want to know how Intuition (which, by the way, is not the O/S, it's just another task) knows how far you can frag a scrollbar with the mouse, I can tell you that: the application tells it how far it can move the knob. -- Peter da Silva. `-_-' .