Overview of Item Types

Scrollbar Items

Scrollbar items are widgets that are used to interactively select a numeric value within a range. Whenever the value is changed, an associated script will be fired. Scrollbars are created with widget commands of the following form:

pathName create scrollbar [option value option value ...]

Scrollbars are one of several widgets that are designed to mirror the functionality and usage of the standard widgets in Java's Abstract Windowing Toolkit (AWT). When scrollbars are created, they automatically get the tag "Scrollbar". Scrollbars have default event handlers which define their behavior. These event handlers are defined on the tag "Scrollbar" for the "Run" event mode. See the section on Default Bindings for more details about the event bindings.

The following options are supported for scrollbars:

-command [14] Callback that is executed when scrollbar value is changed

-fill [23] Specifies fill color of scrollbar

-from [25] Smallest value that scrollbar takes

-linesize [34] Amount scrollbar should change to represent a line change

-orientation [43] Orientation of scrollbar (horizontal or vertical.)

-pagesize [44] Amount scrollbar should change to represent a page change

-to [60] Largest value that scrollbar takes

-value [64] Current value of scrollbar


Pad++ Reference Manual - 20 JUN 1997

Copyright Computer Science Department, The University of New Mexico

Web Accessibility