ThanX!
I found it already - in viewport, and I found out that it's much easier
for my needs. I want just one step with every click, no thread.
> direction is a string. if it contains "up", you will execute
> scrool.scrollup(), id "down" you will execute scrol.scrolldown().
> Objects can be accessed in an array manner instead of the traditional
> . way, so
> you can select the property with string manipulation.
>
> You could have done
>
> eval("scroll.scroll"+e.getSource().direction+"()")
>
>
> En/Na Robelix ha escrit:
>
>> 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?
>>
--
Roland "Robelix" Obermayer
Authorisierter Nichtdenker
http://www.robelix.com
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED]
Fon: 0699/11542243
--
Experience is that marvelous thing that enables you recognize a
mistake when you make it again. -- F. P. Jones
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev