NAME
ScrollView - a box widget that is an alternative to a pair of scrollbars
SYNOPSIS
ScrollView pathName ?option value...?
DESCRIPTION
STANDARD OPTIONS
-background or -bg
-borderwidth or -bd
-cursor
-relief
WIDGET-SPECIFIC OPTIONS
-fill
-foreground or -fg
-height
-width
-window
WIDGET COMMAND
pathName cget option
pathName configure ?option? ?value option value ...?

NAME

ScrollView - a box widget that is an alternative to a pair of scrollbars

SYNOPSIS

ScrollView pathName ?option value...?

DESCRIPTION

The ScrollView widget displays a retangular box that contains a smaller box; these represent respectively the scrolled contents of a larger window and the viewport (visible area) of that window. The small box can be dragged within the large one to scroll the contents of the larger window. A similar widget was used in early Apple® systems as an alternative to scrollbars.

WIDGET-SPECIFIC OPTIONS

-fill
Specifies the fill color of the rectangle.
-foreground
Specifies the color of the border of the rectangle.
-height
Specifies the desired height for the ScrollView.
-width
Specifies the desired width for the ScrollView.
-window
Specifies the window to view. This widget must have -xscrollcommand and -yscrollcommand options, and respond to xview and yview command. In order to make ScrollView working with other scrollbar, -xscrollcommand and -yscrollcommand options of the widget must be set before the widget is passed to the -window option of the ScrollView (for example, if the widget is handled by a ScrolledWindow, call setwidget before setting -window option).

WIDGET COMMAND

pathName cget option
Returns the current value of the configuration option given by option. Argument option may have any of the values accepted by the creation command ScrollView.
pathName configure ?option? ?value option value ...?
Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName. If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Argument option may have any of the values accepted by the creation command ScrollView. Read-only options cannot be modified.

BINDINGS

If mouse button 1 is pressed and dragged over the ScrollView, the top left corner of the visible area of the scrolled window is moved proportionally to the mouse displacement.
If mouse button 3 is pressed over the ScrollView, the top left corner of the visible area is proportionally set to this point.
Copyright © 1998-1999 UNIFIX.
Copyright © 2001-2002 ActiveState Corp.
Copyright © 2017-2025 CitizenEarth Internet Ltd.