Subj : frame.js scrollbars
To   : echicken
From : Nightfox
Date : Wed Nov 25 2015 10:51 am

 Re: frame.js scrollbars
 By: echicken to Nightfox on Tue Nov 24 2015 08:25:30

ec> You can use the ScrollBar object from scrollbar.js (note the camelCase -
ec> there is also a Scrollbar object in that same file, which is not Frame
ec> compatible) to add scrollbars to frames. See comments at the top of the
ec> file for options and instructions.

I have set up a ScrollBar object with a Frame in my message reader script for
displaying messages with ANSI content.  It looks like it's working, but I've
noticed a couple possible issues with it:
- When first displaying the file, it looks like the scrollbar has "holes" in
it.  This is a screenshot I made as an example (using white as the scrollbar
foreground and light grey as the scrollbar background):
http://bit.ly/1Ndbr0G
- I have an input loop in my script that waits for a keypress and scrolls the
Frame when the user presses the up or down arrow, PageUp, PageDown, Home, or
End.  The scrollbar refreshes when I scroll up & down one line (using the
Frame's scroll() method), but after using the Frame's scrollTo() method (which
I'm using for PageUp, PageDown, Home, and End), the scrollbar doesn't refresh
until cycle() is called a 2nd time (which happens when I press PageUp,
PageDown, Home, or End in my script).

For the 2nd issue, I'm not sure if it's something I'm doing wrong in my script
or if it's an issue in the scrollbar/frame class.

Nightfox

---
� Synchronet � Digital Distortion: digitaldistortionbbs.com