| Itcl  | Itk  | Itcl @ Wiki  | Itcl @ SF  | Tcl  | Tcl @ Wiki |
  home || iwidgets || man pages cross ref distribution docs faq  
buttonbox
calendar
canvasprintbox
canvasprintdialog
checkbox
combobox
dateentry
datefield
dialog
dialogshell
disjointlistbox
entryfield
extbutton
extfileselectionbox
extfileselectiondialog
feedback
fileselectionbox
fileselectiondialog
finddialog
hierarchy
hyperhelp
labeledframe
labeledwidget
mainwindow
menubar
messagebox
messagedialog
notebook
optionmenu
panedwindow
promptdialog
pushbutton
radiobox
regexpfield
scrolledcanvas
scrolledframe
scrolledhtml
scrolledlistbox
scrolledtext
scrolledwidget
selectionbox
selectiondialog
shell
spindate
spinint
spinner
spintime
tabnotebook
tabset
timeentry
timefield
toolbar
watch

man page | options | methods

Scrolledcanvas

The scrolledcanvas iwidget applies scrollbars and display options to a standard Tk canvas widget. All the standard canvas commands and options have been maintained. A new option, autoresize, has been added which allows the user to engage automatic resizing of the scroll region to be the bounding box covering all the items. The region is adjusted continuously as items are created and destroyed via the canvas commands, effecting the display of the scrollbars. For further information, see the Scrolledcanvas manpage

Components: canvas clipper horizsb hull label vertsb
				

wm title . "Scrolledcanvas Example"

##=========================================================
##	Create scrolledcanvas iwidget
##=========================================================
##
iwidgets::scrolledcanvas .sc \
	-textbackground gray \
	-width 300 \
	-height 300 \
	-vscrollmode dynamic \
	-hscrollmode dynamic \
	-labeltext "Scrolledcanvas Example"

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

pack .sc \
	-padx 10 \
	-pady 10


Download this sample code
man page | options | methods
 
  home || iwidgets || man pages cross ref distribution docs faq  
Copyright | Contributions | Development Team | Credits
Bugs/Comments/Suggestions about this web site