[logo] JX Application Framework
   
Home     
* Cart

Introduction

Why use a framework?

Download

Vision
    API stability

    Code optimization

    Bibliography

Features
    Object messaging

    Extensibility

    Drag-and-Drop

    Networking

    3D Graphics

    Powerful tables

    Styled text editor

    Memory leak debugger

    Tutorial
    Class tree

    Open protocols

    Known bugs

    Next release
    Future plans

    Projects

FAQ

Other software

Log in  

   
     

Scrollbars

Unlike the standard, brain-dead scrollbars provided by everybody else, JXScrollbar does far more than just scroll a widget:

  • Holding down the Shift key makes the arrows scroll a half page at a time.
  • An increment/decrement arrow pair is provided at each end if there is space.
  • Scrolltabs provide a way to save particular positions.

The first two features conveniently package all the basic scrolling functions in one place, so one does not have to move the mouse all the way to the other end of the scrollbar if one overshoots by a couple of lines.

horizontal scrollbar

Scrolltabs

A scrolltab provides the ability to save a particular position so one can easily jump back to it later. Clicking the right mouse button on the scrollbar thumb or any scrolltab pops up a menu with the available options. The shortcuts are as follows:

User's action Scrollbar's response
Meta-left-click on scrollbar thumb Place a scrolltab
Left-click on scrolltab Jump to the saved position
Meta-left-click on scrolltab Remove it
Meta-Shift-left-click on scrolltab Remove all scrolltabs

For maximum usefulness, it is strongly recommended that the JXScrollableWidget catch Ctrl-1 through Ctrl-9 and call ScrollToTab() on the more useful scrollbar (usually the vertical one) so the user doesn't have to use the mouse to jump around. (Meta-1 through Meta-9 are reserved for use by JXDocumentMenu.)

Of course, this feature would not be complete without the following:

  • By calling PrepareForLowerMaxValue(), PrepareForHigherMaxValue(), and PrepareForScaledMaxValue(), JXScrollableWidgets can keep the scrolltabs in sync with their contents.

  • ReadSetup() and WriteSetup() allow programs to save the scrolltabs between sessions.

Copyright © 2008 New Planet Software