[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

1141.0. "layers.library/ScrollLayer" by NAC::VISSER () Mon Feb 08 1988 12:57

    Does anyone know how to use the Layers library?  
    
    	I have a screen with a superbitmap window on it, and I want
    to scroll the superbitmap under the window.  So I need the function
    ScrollLayer.  This function's input are:
    
  (pointer to LayerInfo structure, a non-backdrop layer, deltaX, deltaY) 
  
    Fine.  What layer info structure?  What non-backdrop layer? I didn't
    (explicitly) use any layers in the program (I know that's where the
    windowing system comes from).  My guess, after reading the RKM, etc.,
    is that I must create an instance of a layer info structure, probably
    using NewLayer (does the init), and then supply the window's layer
    pointer as the second argument.  The system locks/unlocks the layers
    automatically, according to RKM, so no need for those calls.
    
    Anyone?
    
    Thanks,	John
T.RTitleUserPersonal
Name
DateLines
1141.1FF knows howELWOOD::PETERSMon Feb 08 1988 16:398
    
    
    	There is a very good example of scrolling super bitmaps
    on an early Fred Fish disk. I will look for it tonight and
    upload it.
    
    		Steve Peters
    
1141.2NAC::VISSERMon Feb 08 1988 16:471
    Great! Thanks.
1141.3FF28 and FF33ELWOOD::PETERSTue Feb 09 1988 04:2919
    
    
    	I have uploaded two examples tonight.
    
    1)  MVCAD3::user0:[amiga.ff28]superb.arc  "superbitmap"
    2)  MVCAD3::user0:[amiga.ff33]bigmap.arc
    
    There is a third example on FF05 I will get uploaded soon.
    
    
    
    	For anyone interested I uploaded all of FF28 and FF33. FF33
    contains 11 intersting programs including SDB ( database ), 
    a couple of utilities ( memview, diskmapper ) and a couple of
    fun demo programs ( Oing, Sproing ).
    
    
    		Steve Peters
    
1141.4AIKITS::WISNERTue Apr 19 1988 19:073
    Does ScrollLayer actually move the data in the BitMap?   Or
    are the XOffset and YOffset's modified, moving your viewing window
    to a different section of the SUPERBITMAP?
1141.5ELWOOD::PETERSTue Apr 19 1988 20:137
    
    	ScrollLayer seems to move your view window. The tests I did
    with a SUPERBITMAP allow you to draw anywhere in the bitmap and
    the scroll over the entire bitmap area.
    
    		Steve Peters