Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!cbmvax!higgin From: higgin@cbmvax.UUCP Newsgroups: comp.sys.amiga Subject: Re: Question on PROP. gadgets using AUTOKNOB Message-ID: <1466@cbmvax.cbmvax.cbm.UUCP> Date: Wed, 25-Feb-87 23:25:25 EST Article-I.D.: cbmvax.1466 Posted: Wed Feb 25 23:25:25 1987 Date-Received: Sat, 28-Feb-87 00:48:36 EST References: <8702251843.AA10187@cory.Berkeley.EDU> Reply-To: higgin@cbmvax.UUCP (Paul Higginbottom SALES) Organization: Commodore Technology, West Chester, PA Lines: 28 In article <8702251843.AA10187@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU (Matt Dillon) writes: $I'm working on a simple graphical flowcharting program and am using $two proportional gadgets in the right and bottom borders to handle scrolling. $Everything works properly. The question is: What should I do with the entry in $the Gadget structure for the Image? INTUITION crashes if I set it to NULL, $but when I set it to some arbitrary image, it doesn't seem to affect the $proportional gadget at all. $In otherwords, no matter what I set the Image to, I get a normal rectangular $border around my prop gadget. Now, I *want* a normal border, but do not $understand why I need a dummy image to make it all work. $Anybody have any ideas? $ -Matt Yes, Matt - I was puzzled by the for a while, too. The answer is that Intuition needs an Image structure attached to the gadget which IT uses (as opposed to an application using it). It (Intuition) needs to create its own version of dimensions, offsets, etc. These get modified when you do the ModifyPropInfo() (I think that's the call... been a while) or size the window (assuming you're using the relative sizing). Since proportional gadgets will be represented identically (in terms of imagery) to other gadgets by having an Image structure attached which Intuition happens to fill in instead of the application program, these gadgets can be updated / refreshed, etc without special [too much] special logic. Hope this helps, Paul. Disclaimer: The above might be utter bilge.