Article View: comp.sys.amiga.tech
Article #9917Re: following the sliding prop gadget
From: Sullivan
Date: Wed, 28 Sep 1988 03:58
Date: Wed, 28 Sep 1988 03:58
43 lines
2758 bytes
2758 bytes
>
>I would like to see the contents of one of my windows scroll continouously
>as I slide a prop gadget up and down, rather than just get one change
>when I finish let go of the select button. Preferences and Manx's SDB
>gadget's Activation field, and I reply to all messages. Am I missing
>something? If I ever do succeed in getting continuous messages, is it
>reasonable to expect the PropInfo structure to be updated continuously?
>Is there another way to get the desired effect?
>
>Thanks,
>Tom Skrobala AT&T Bell Laboratories mtuxo!tas 201-957-5446
Sounds like your gadgets are changing the screen (as well they should) but
since Intuition now has a lock on the front bitmap (to animate the gadget)
nothing else in the window can update. Thus you don't get any of the
messages you are waiting for after the first time you wait on anything
else that would update the screen (like printing a new list of lines).
If these assumptions are correct then what you must do, is to make your
scroll bar something other than a gadget, and animate it yourself (by following
the mouse...) That way your main task will have the lock neccessary to do
both of the screen updates. Alternatively, you could violate the lock
(since you know what the user is doing anyway,) and write to the screen
bitmap directly. (This could really mess up the screen if you don't call
window to front first, or if a requestor comes up, but hey, if you are
planning on taking over the machine anyway, who cares?
Think? Who Me? I hack, sometimes it's more fun to see how many different
ways your code can crash the machine. :-) (PLEASE don't take that seriously.)
-Sullivan Segall
(still looking for a 68881 that
can be piggy-backed on a 68000)
_____________________________________________________________
/V\ My opinions are guaranteed to be worth at least what you
' paid for them. If you are dissatisfied, please return
them to the nearest vendor for a full and prompt refund.
To Quote the immortal Socrates: "I drank what?" -Sullivan
_____________________________________________________________
Mail to: ...sun!portal!cup.portal.com!Sullivan or
Sullivan@cup.portal.com
Technical Details
Message-ID:
<9515@cup.portal.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!rutgers!mit-eddie!bu-cs!purdue!decwrl!sun!imagen!atari!portal!cup.portal.com!SullivanReferences:
<2877@mtuxo.att.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!rutgers!mit-eddie!bu-cs!purdue!decwrl!sun!imagen!atari!portal!cup.portal.com!Sullivan From: Sullivan@cup.portal.com Newsgroups: comp.sys.amiga.tech Subject: Re: following the sliding prop gadget Message-ID: <9515@cup.portal.com> Date: 28 Sep 88 03:58:58 GMT References: <2877@mtuxo.att.com> Distribution: na Organization: The Portal System (TM) Lines: 43 XPortal-User-Id: 1.1001.5165