NAME
ScrolledWindow - a container with configurable scrollbars for use by any scrollable widget
SYNOPSIS
ScrolledWindow pathName ?option value...?
DESCRIPTION
STANDARD OPTIONS
Not themed
-background or -bg
-borderwidth or -bd
-relief
Themed
-borderwidth (-bd has no effect)
-relief
WIDGET-SPECIFIC OPTIONS
-auto
-ipad (read-only)
-managed (read-only)
-scrollbar
-sides (read-only)
-size (read-only)
WIDGET COMMAND
pathName cget option
pathName configure ?option? ?value option value ...?
pathName getframe
pathName setwidget widget

NAME

ScrolledWindow - a container with configurable scrollbars for use by any scrollable widget

SYNOPSIS

ScrolledWindow pathName ?option value...?

DESCRIPTION

The ScrolledWindow widget provides scrollbars that can be applied to any scrollable widget: typically a Tk text or canvas, or a Slab ScrollableFrame. Each scrollbar provided by the ScrolledWindow is configurable: it can be omitted if unnecessary (e.g. showing only a vertical scrollbar if horizontal scrolling is not required), and can be shown either permanently, or only if the contents of the scrollable widget are large enough to need scrolling.

Call the widget command setwidget to map a scrollable widget into the ScrolledWindow and control the scrollable widget with the scrollbars of the ScrolledWindow.

The ScrolledWindow widget is used by Slab ComboBox and SelectFont.

WIDGET-SPECIFIC OPTIONS

"Read-only" options must be supplied as arguments to the ScrolledWindow command. The values of these options cannot be changed later by calling the configure widget command.

-auto
Specifies the desired auto managed scrollbar:
-ipad (read-only)
Padding in pixels between client widget and scrollbars. Default value: 1.
-managed (read-only)
(Boolean) If true, scrollbars are managed during creation, so their size are included in the requested size of the ScrolledWindow. If false, they are not. Default value: true.
-scrollbar
Specifies the desired scrollbar: none, horizontal, vertical or both (default value).
-sides (read-only)
Side of the scrollbars. Possible values are: ne, en, nw, wn, se (default value), es, sw, ws.
-size (read-only)
Size of the scrollbars in pixels. Use 0 for standard size (default value).
This option has no effect if widget is themed.

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 ScrolledWindow.
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 ScrolledWindow. Read-only options cannot be modified.
pathName getframe
Return the pathname of the frame where the scrolled widget should be created. This command is no longer needed. You can directly create the scrolled widget as the child of pathName.
pathName setwidget widget
Associate widget to the the scrollbars. widget becomes managed by the ScrolledWindow. The user should not attempt to manage widget until it is no longer managed by the ScrolledWindow. widget must be a scrollable widget, i.e. have the options -xscrollcommand and -yscrollcommand and the commands xview and yview, such as Tk canvas or text, or Slab ScrollableFrame.
Copyright © 1998-1999 UNIFIX.
Copyright © 2001-2002 ActiveState Corp.
Copyright © 2017-2025 CitizenEarth Internet Ltd.