If you just want to change the images take a look at this function:

function MetalScrollPane() {
        if (!DynAPI.librarypath) return null;
        return {
                vbg : 
DynImage.getImage(DynAPI.librarypath+'dynapi/images/scrollpane/scrollbar-vbg.gif'),
                vknob : 
DynImage.getImage(DynAPI.librarypath+'dynapi/images/scrollpane/scrollbar-vknob.gif'),
        
                hbg : 
DynImage.getImage(DynAPI.librarypath+'dynapi/images/scrollpane/scrollbar-hbg.gif'),
                hknob : 
DynImage.getImage(DynAPI.librarypath+'dynapi/images/scrollpane/scrollbar-hknob.gif'),

                up : 
DynImage.getImage(DynAPI.librarypath+'dynapi/images/common/arrowup.gif'),
                dn : 
DynImage.getImage(DynAPI.librarypath+'dynapi/images/common/arrowdown.gif'),
                lt : 
DynImage.getImage(DynAPI.librarypath+'dynapi/images/common/arrowleft.gif'),
                rt : 
DynImage.getImage(DynAPI.librarypath+'dynapi/images/common/arrowright.gif'),
                
                overlap : 1
        };
};

Make your own function similar to this one (change the name since its
already used in scrollpane.js).  Just put the path to your images in
there.  Then after you create your scrollpane:

var pane = new ScrollPane(x);
pane.setTheme(MetalScrollPane())

However, if you want to change the location of the scrollbar you will
need to implement your own scrollpane.  The scrollpane is basically a
wrapper for a viewport and a scrollbar.  So you could probaly just
edit the scrollpane code to change the placement of the scrollbar.

-- 
// Robert Rainwater

On 2/25/2001, 2:51:23 PM EST, Jason wrote about "[Dynapi-Help] scroll":

> I am completely lost here so any help is appreciated

> I am currently using a scroll pane and a label.  I fill the label with some 
> text and I can scroll it.  That all works fine.  What I want to do though is 
> reposition the vertical scrollers.  I basically want to use my own images 
> for the scroll buttons and center them next to the area I am scrolling.

> Can I continue to use the scroll pane and label and somehow replace the 
> images it uses and reposition them to where I want or do I have/is it best 
> to use a scroll object?  I just don't get it.

> A simple example would be sweet...
> Thanks

> Jason


> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com


> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help


----------------------
DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/
DynAPI Homepage: http://dynapi.sourceforge.net/



_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to