Path: utzoo!mnetor!uunet!nuchat!sugar!peter From: peter@sugar.UUCP (Peter da Silva) Newsgroups: comp.sys.amiga Subject: Re: Scroll Bars in SuperBitMaps Message-ID: <1425@sugar.UUCP> Date: 29 Jan 88 07:40:38 GMT References: <616@wolf.UUCP> Organization: Sugar Land UNIX - Houston, TX Lines: 20 Keywords: Scroll Proportional Gadgets SPAM Super Bitmap Duper PitTrap In article <616@wolf.UUCP>, uzun@wolf.UUCP (Roger Uzun) writes: > I am trying to add scroll bars to a SuperBitmap Window that opens up > fine otherwise. All I get are Gurus when I add the ptr to the linked > list of Gadgets with my 2 Proportional Gadgets (scrollbars) in it. > struct PropInfo HScrollBar = { > FREEHORIZ | AUOTKNOB, > 0,0, > 0XFFFF,0XFFFF, > 0,0,0,0,0,0}; You need to provide an uninitialised Image structure for the scrollbar. Why, I don't know. It seems it should be able to say "ah, it's null, so I'll allocate the Image structure along with the bitmap". One of the great mysteries of the modern world, I guess... but there it is. Perhaps 1.4 can be a bit smarter in that area. -- -- Peter da Silva `-_-' ...!hoptoad!academ!uhnix1!sugar!peter -- Disclaimer: These U aren't mere opinions... these are *values*.