san@bubba.UUCP (02/17/86)
Help!
I'm trying to use layers with an Intuition window. What I wanty
to do is create my own 1024 x 1024 bitmap, and scroll it around
inside an Intuition window. I have succeded in scrolling the window,
but whenever I size the window and move (drag) it, portions of my
bitmap gat blanked out! Heres what I'm doing:
* InitBitMap()
* Create 1024 x 1024 bitmap w/calls to AllocRaster
* Assign BitMap to NewWindow structure
* Call OpenWindow(NewWindow)
* Obtain a pointer to Layer from Window->RPort->Layer
* Obtain a point to a Layer_Info from Layer->LayerInfo
Using proportional gadgets I've created to scroll the layer works
great. I just make calls like:
ScrollLayer(LayerInfo, Layer, deltaX, deltaY)
(can't remember order of args just now...)
That all works fine, but when I size and drag the window, portions
of my bitmap get cleared to (I think) the background pen color!
Thanks in advance,
Steve Sanderson
--
Steve Sanderson, COSI Texas
4412 Spicewood Springs, Suite 801 Austin, Texas 78759
UUCP: {ihnp4, seismo, ctvax}!ut-sally!cositex!san, san@cositex.UUCP
AT&T: (512) 345-2780