I beleive that the particular line accesses code in the viewport.js so have
a look.
Deli

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Robelix
Sent: 25 May 2001 21:19
To: [EMAIL PROTECTED]
Subject: [Dynapi-Dev] ScrollPane Question


Hi!

I need a scrollbar with buttons. So I tried to extract it from the
ScrollPane, but I don't understand one line in the buttonListener:

        var buttonListener = new EventListener(this);
        buttonListener.onmousedown = function(e) {
                var scroll = e.getTarget();
*****           scroll["scroll"+e.getSource().direction]();    ******
                scroll.findDimensions();
        };

can somebody tell me what exactly the marked line does?

Thanx
--
Roland "Robelix" Obermayer
Authorisierter Nichtdenker
http://www.robelix.com
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED]
Fon: 0699/11542243

--
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying
to produce bigger and better idiots. So far, the Universe is winning."

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


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

Reply via email to