Hi Plucker Team,

A second (hopefully near the final) draft of autoscroll is available.
Code is in the plucker CVS under the auto_scroll branch for your inspection
& bug fixes.
A compiled .prc is also available at:
http://www.rob.md/projects/plucker/2001_08_08/viewer_en.prc

Intended behaviours running:

-Ability to set autoscroll mode (pixel/page) [line later if available], as
well as how much of a jump of each. Fractions have been cut from page
options (eg 1/2 page) since redundant to either 80 pixels or 6 lines
options, and can use less code.
-Ability to specify either autoscroll up or down.
-Start/stop/incr/decr autoscroll from appropriate toolbar GUI button, menu,
or command stroke.
-Start/stop/incr/decr autoscroll from hardkey, gesture, or screen tap.
-Touching scrollbar, viewport (other than links), buttons, menu, command
stroke or hardkey/gesture/screentap (that isn't a toggle/faster/slower
autoscroll) should stop autoscroll.
-HardkeyPowerOff/Autoshutoff stops Autoscroll.
-When MainForm initializes (eg when launch app), set Autoscroll to off.
-Hitting top or bottom of a page (scrolling up or down respectively) stops
Autoscroll. If later add the tours, can add an if next page on the tour, go
to next page, else stop.
-Prevent any gestures/hardkeys actions from running when menu is displayed
(otherwise will draw them to the menu window)...if mapped a 'toggle
autoscroll', or 'go to top' to address button, then pressed it during a menu
display, would cause it to draw into the menu. CSpotRun seems to suffer from
this: if toggle when menu displayed, can see it autoscroll in the menu
window.
-When poweron, don't redraw the Autoscroll button to play if currently
viewing a Large Image.
-Stay on while autoscrolling should prevent an autoshutoff during scroll.
-On options form, show alert when click the prevent autoshutoff during
scroll tickbox. Only show the alert when checking the box, not unchecking
it.

Other notes:

-Bitmaps of (+) (-) widened for easier stylus tapping.
-Originally had the autoscroll in the main Preferences form. It was too
crowded, and prevents any room for a future preference to be listed. Works
better on own form.
-Menu/button/gesture options changed from 'increase/decrease' to
'faster/slower' to make more clear that changing time interval, not
jumpsize.
-Code not added to stop scrolling on PageUp/Down Rocker key, since sort of
useful to keep this maintained, so can jump down a page if currently
autoscrolling some junk by, like an advertisement image. Also not stop
autoscroll on a link click, to allow to navigate through a many-hyperlinked
text, and have it continue to scroll by--this one may need to get wired up
though, since unless scrolling by slowly, may be hard to have a pendown and
penup in the hyperlink, before the hyperlink moves up out of its selection
rectangle?
-Original controls for setting jumpsize and interval were drop downs, but
changed to spinners since smaller code needed, yet more flexible.
-This is a not-yet-merged branch from about 2 weeks back, so Library, etc.
may be a bit inconsistent with the current version, nor is preformatted text
supported here. This gets fixed when merge the files.
-There is a noticeable speed increase during single/double pixel scrolls if
set colour depth down to 1.
-Increase minimum delay up from 0 ticks, so that can't make it stutter (or
else add a sentence warning that cranking speed up to 0 tick delay might do
a stutter on certain hardware and a complex page). Noticed that CSpotRun
only allows 5 ticks, not 0 ticks.

ToDo:

-LowBatteryDialog shutoff of autoscroll. Should be straightforward, just
catch the vchr for low battery dialog in the HandleVChrs() along with
HardwareKeys, and the rest. It is commented out in the source, however. For
some reason, when it is uncommented as a case, it will cause autoscroll to
stop running after about 20-30 secs or so. Don't know why.

ToDo Perhaps:

-Scrollbar arrow movement customization, ie allowing one to set how many
pixels/lines/pages are scrolled when touch the arrows at the end of the side
scrollbar. If can think of a way of doing this in a few lines, will drop
this in. Would rather not have to look for the pen downs in the scrollbar
arrow area. Rocker customization is straightforward, scrollbar arrow doesn't
seem to be.

Best wishes,
Robert

Reply via email to