I've tried to get a scrollpane working so I can customise it, but
I end up fighting with the results (i.e. Can get it to just scroll
on the vertical only, doesn't work in netscape 6 properly, etc)
So I've got a scroll bar and two buttons working quite well, where
I can capture the onscroll event, as well as receive onclicks from
the buttons. I can call getRatioY() and know what is going on.
Then I want to have the scrollbar make a viewport slide up and down.
But it seems that when I set the viewports ratioY(), it works fine
in Internet Explorer 6 but not Netscape 6.1 (I'll deal with Netscape4.7x
later).
So, what I have for my event handler is:
var listener = new EventListener();
listener.onscroll = function(event) {
var self = event.getSource();
// need to do this to get the numbers right in netscape
self.findRatio();
var viewport = window.document.viewport;
// doesn't work in netscape
viewport.setRatioY(self.getRatioY());
// debug
window.status = 'self.ratioY=' + self.getRatioY() +
',viewport.ratioY=' + viewport.getRatioY();
}
vbar.addEventListener(listener);
This works fine in IE6 (and I presume in earlier ones), but without the
findRatio() netscape doesn't recalculate the ratio values, and so
can't be adjusted correctly. The viewport doens't have a findRatio()
sort of method. Having had alook at how scollbar and scrollpane works,
there seems to be a difference between the implementation of setScrollY().
Has anyone got it to work, or has a similar thing to suggest? Even getting
scrollpane to work would be good, but I can't see tat happening for what I
want.
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help