Article View: comp.sys.amiga.tech
Article #9920Re: following the sliding prop gadget
From: Kevin Clague
Date: Fri, 30 Sep 1988 15:37
Date: Fri, 30 Sep 1988 15:37
97 lines
4589 bytes
4589 bytes
In article <9515@cup.portal.com> Sullivan@cup.portal.com writes:
>>
>>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
>
>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.
more untruths about Intuition and gadgets deleted....
Intuition does not keep any lock on the window (or any of it's parts)
for long periods of time like that. The problem is that you aren't
getting the messages when you expect them. You must not have your
window or gadget set up properly.
When you want to get mousemoves from a gadget, you must make sure the
gadget AND the window's IDCMP stuff is set up properly. All this is
from memory (boy I need to get some RKM's for work, or Net access at
home)...
To set things up:
1. Set up the FOLLOWMOUSE and GADGIMMEDIATE flags. You can set
RELVERIFY if you want to stop getting MOUSEMOVES when the mouse
is outside the potentiometer's container.
If you have IDCMP set up properly, this should give you
GADGETDOWN, MOUSEMOVES, and GADGETUP messages.
2. In the window, you must make sure the window flags and IDCMPFlags
are set up properly. Make sure your NewWindow structure's Flags
member has REPORTMOUSE set in it.
If your program always wants to see MOUSEMOVES, you should set
the MOUSEMOVES flag in the NewWindow structure's IDCMPFlags.
If you normally have your IDCMP set up to not receive MOUSEMOVES then
when the user presses the potentiometer gadget, you should start to
receive MOUSEMOVE message. They should stop once the user releases the
mouse button (or go out of the potentiometer container and you have
RELVERIFY set.)
This is a long winded explanantion, but Sullivan seemed so far off base
that I felt I should try to correct things. There is absolutely no
need to go directly to the screen to do any rendering or simulate
your own gadget stuff.
Tom Skrobala (the original author) seemed to be getting mouse moves,
but without more information, it's hard to know if they are associated
with the potentiometer gadget, or just the window.
From Tom:
>>I have tried various
>>combinations of GADGIMMEDIATE, RELVERIFY, and FOLLOWMOUSE in the
>>gadget's Activation field, and I reply to all messages. Am I missing
>>something?
I think your in the right area..... email me if you continue to have
problems.
You might print out IDCMPFlags in your open window to see if intuition
automagically turns on and off your MOUSEMOVE IDCMPFlags. If it doesn't
then you might have to (but I doubt it.)
>>If I ever do succeed in getting continuous messages, is it
>>reasonable to expect the PropInfo structure to be updated continuously?
Yes.
>>Is there another way to get the desired effect?
This is the right way. Using INTUITICKS is OK, but it is a waste. You
would continue to receive and process INTUITICKS, even when the user
does not move the mouse. Using FOLLOWMOUSE, you only process messages
when you need to.
>>Thanks,
>>Tom Skrobala AT&T Bell Laboratories mtuxo!tas 201-957-5446
In article <9515@cup.portal.com> Sullivan@cup.portal.com writes:
>
>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
Kinda hard not to...
kevin
--
UUCP: kevin@amdahl.uts.amdahl.com
or: {sun,decwrl,hplabs,pyramid,seismo,oliveb}!amdahl!kevin
DDD: 408-737-5481
USPS: Amdahl Corp. M/S 249, 1250 E. Arques Av, Sunnyvale, CA 94086
[ Any thoughts or opinions which may or may not have been expressed ]
[ herein are my own. They are not necessarily those of my employer. ]
Technical Details
Message-ID:
<bbgWR04hbH10108sRIM@amdahl.uts.amdahl.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!super!udel!gatech!ukma!mailrus!ames!amdahl!kevinReferences:
<2877@mtuxo.att.com> <9515@cup.portal.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!super!udel!gatech!ukma!mailrus!ames!amdahl!kevin From: kevin@amdahl.uts.amdahl.com (Kevin Clague) Newsgroups: comp.sys.amiga.tech Subject: Re: following the sliding prop gadget Message-ID: <bbgWR04hbH10108sRIM@amdahl.uts.amdahl.com> Date: 30 Sep 88 15:37:21 GMT References: <2877@mtuxo.att.com> <9515@cup.portal.com> Reply-To: kevin@amdahl.uts.amdahl.com (Kevin Clague) Distribution: na Organization: Amdahl Corporation, Sunnyvale, CA 94086 Lines: 97