scrolledcanvas - Create and manipulate scrolled canvas widgets

SYNOPSIS

scrolledcanvas pathName ?options?

INHERITANCE

itk::Widget <- Labeledwidget <- Scrolledwidget <- Scrolledcanvas

STANDARD OPTIONS

activeBackground
exportSelection
highlightThickness
insertWidth
selectForeground
background
font
insertBorderWidth
relief
borderWidth
foreground
insertOffTime
selectBackground
cursor
highlightColor
insertOnTime
selectBorderWidth

See the "options" manual entry for details on the standard options.

ASSOCIATED OPTIONS

closeEnough
yScrollIncrement
confine
scrollRegion
xScrollIncrement

See the "canvas" widget manual entry for details on the above associated options.

activeRelief
elementBorderWidth
jump
troughColor

See the "scrollbar" widget manual entry for details on the above associated options.

INHERITED OPTIONS

disabledForeground
labelMargin
state
labelBitmap
labelPos
labelFont
labelText
labelImage
labelVariable

See the "labeledwidget" class manual entry for details on the inherited options.

WIDGET-SPECIFIC OPTIONS

Name:                   autoMargin
Class:                  AutoMargin
Command-Line Switch:	-automargin

Name:                   autoResize
Class:                  AutoResize
Command-Line Switch:	-autoresize

Name:                   height
Class:                  Height
Command-Line Switch:	-height

Name:                   hscrollMode
Class:                  ScrollMode
Command-Line Switch:	-hscrollmode

Name:                   sbWidth
Class:                  Width
Command-Line Switch:	-sbwidth

Name:                   scrollMargin
Class:                  ScrollMargin
Command-Line Switch:	-scrollmargin

Name:                   textBackground
Class:                  Background
Command-Line Switch -textbackground

Name:                   vscrollMode
Class:                  ScrollMode
Command-Line Switch:	-vscrollmode

Name:                   width
Class:                  Width
Command-Line Switch:	-width

DESCRIPTION

The scrolledcanvas command creates a scrolled canvas with additional options to manage horizontal and vertical scrollbars. This includes options to control which scrollbars are displayed and the method, i.e. statically or dynamically.

METHODS

The scrolledcanvas command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form:

pathName option ?arg arg ...?
Option and the args determine the exact behavior of the command. The following commands are possible for scrolledcanvas widgets:

ASSOCIATED METHODS

addtag
canvasy
delete
gettags
itemconfigure
raise
type
bbox
coords
dtag
icursor
lower
scale
xview
bind
create
find
index
move
scan
yview
canvasx
dchars
focus
insert
postscript
select

See the "canvas" manual entry for details on the associated methods.

WIDGET-SPECIFIC METHODS

pathName cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the scrolledcanvas command.
pathName childsite
Returns the child site widget path name.
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 (see Tk_ConfigureInfo for information on the format of this list). 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. Option may have any of the values accepted by the scrolledcanvas command.
pathName justify direction
Justifies the canvas contents via the scroll bars in one of four directions: left, right, top, or bottom.

COMPONENTS

Name:                   canvas
Class:                  Canvas

Name:                   horizsb
Class:                  Scrollbar

Name:                   vertsb
Class:                  Scrollbar

EXAMPLE

  scrolledcanvas .sc 

  .sc create rectangle 100 100 400 400 -fill red
  .sc create rectangle 300 300 600 600 -fill green
  .sc create rectangle 200 200 500 500 -fill blue

  pack .sc -padx 10 -pady 10 -fill both -expand yes

AUTHOR

Mark L. Ulferts

KEYWORDS

scrolledcanvas, canvas, widget