[net.micro.amiga] Problem with proportional gadget

phil@scubed.UUCP (Phil Cohen) (08/08/86)

References:

I have hesitated to ask for help with this, but am at my wits end.
My program uses a proportional gadget and I am experiencing some 
very wierd behaviour.  If one clicks in the body of the gadget, all
works as advertized, however, if one clicks and drags the knob, all hell
breaks loose.  The gadget image gets replicated outside of the window
that it belongs in and the system quickly crashes.  I'm sure it must be
my fault but am at a total loss to see what is wrong.  Any ideas?
The gadget is in a subwindow on top of a backdrop window and I am using
version 1.1.

higgin@cbmvax.cbm.UUCP (Paul Higginbottom) (08/10/86)

In article <110@scubed.UUCP> phil@scubed.UUCP (Phil Cohen) writes:
>My program uses a proportional gadget and I am experiencing some 
>very wierd behaviour.  If one clicks in the body of the gadget, all
>works as advertized, however, if one clicks and drags the knob, all hell
>breaks loose.  The gadget image gets replicated outside of the window
>that it belongs in and the system quickly crashes.  I'm sure it must be
>my fault but am at a total loss to see what is wrong.  Any ideas?
>The gadget is in a subwindow on top of a backdrop window and I am using
>version 1.1.

Proportionals are tricky things to set up right.  I didn't use AUTOKNOB
in one I just did on a window that couldn't be sized - I had a feeling
the AUTOKNOB was for windows that get sized, because it changes in that
case.  Anyway, I didn't use that, but you must have an Image and a PropInfo
structure filled in properly and their respective addresses assigned in the
GadgetRender and SpecialInfo.

Also, if you use the method I suggested above, you'll need GAGDIMAGE set.

I had the exact same symptoms you report (Images being splattered all over
the place for a while before the machine croaks), so don't feel so bad!

Hope this helps a little.

	Paul.

Disclaimer: I do not work for Commodore, and my opinions are my own.

apratt@atari.UUcp (Allan Pratt) (08/11/86)

This discussion of gadgets is interesting, but does not belong in
net.micro.atari16.  I am not an Amiga-phobe, just a part-time
net.police-man. Thanks.

/----------------------------------------------\
| Opinions expressed above do not necessarily  |  -- Allan Pratt, Atari Corp.
| reflect those of Atari Corp. or anyone else. |     ...lll-lcc!atari!apratt
\----------------------------------------------/