scrolledcanvas - Create and manipulate scrolled canvas widgets
scrolledcanvas pathName ?options?
itk::Widget <- Labeledwidget <- Scrolledwidget <- Scrolledcanvas
options.
closeEnough confine scrollRegion xScrollIncrement
yScrollIncrement
associated options.
activeRelief elementBorderWidth jumptroughColor
associated options.
inherited options.
only effective with autoresize turned on. The default is 10.
covering all the items in the canvas following the execution of any method which creates or destroys items. Thus, as new items are added, the scrollbars adjust accordingly.
forms acceptable to Tk_GetPixels. The default height is 30 pix-
els.
scrollbar: static, dynamic, or none. In static mode, the scroll
bar is displayed at all times. Dynamic mode displays the scroll
bar as required, and none disables the scroll bar display. The
default is static.
able to Tk_GetPixels. The default width is 15 pixels..
the forms acceptable to Tk_GetPixels. The default is 3 pixels.
background within the canvas to be different from the normal
background color.
scrollbar: static, dynamic, or none. In static mode, the scroll
bar is displayed at all times. Dynamic mode displays the scroll
bar as required, and none disables the scroll bar display. The
default is static.
forms acceptable to Tk_GetPixels. The default height is 30 pix-
els.
_________________________________________________________________
tional options to manage horizontal and vertical scrollbars.
and the method, i.e. statically or dynamically.
is pathName. This command may be used to invoke various opera- tions on the widget. It has the following general form:
pathName option ?arg arg ...?
addtag bbox bind canvasx canvasy coords create dchars delete dtag find focus gettags icursor index insert itemconfigure lower move postscript raise scale scan select
ods.
pathName cget option
option. Option may have any of the values accepted by the
scrolledcanvas command.
pathName childsite
pathName configure ?option? ?value option value ...?
option is specified, returns a list describing all of the avail-
able 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
directions: left, right, top, or bottom.
get manual entry for details on the canvas component item.
«ScrollBar» widget manual entry for details on the horizsb compo-
nent item.
«ScrollBar» widget manual entry for details on the vertsb compo- nent item.
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
scrolledcanvas, canvas, widget