| 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

Scrolledwidget

Implements a general purpose base class for scrolled widgets, by creating the necessary horizontal and vertical scrollbars and providing protected methods for controlling their display. The derived class needs to take advantage of the fact that the grid is used and the vertical scrollbar is in row 0, column 2 and the horizontal scrollbar in row 2, column 0. For further information, see the Scrolledwidget manpage

Components: horizsb hull label vertsb
				

wm title . "Scrolledwidget Example"

##=========================================================
##	Create a Scrolledwidget Example"
##=========================================================
##
iwidgets::scrolledwidget .sw \
  -width 200 \
  -height 200 \
  -hscrollmode static \
  -vscrollmode static

grid .sw 

set cs [.sw childsite]

set cs .sw

frame $cs.fm \
  -relief groove \
  -bd 4

grid $cs.fm \
  -row 0 \
  -column 0

text $cs.fm.text \
	-setgrid 1

pack $cs.fm.text \
  -expand true \
  -fill both

grid columnconfigure $cs.fm 0 -weight 1
grid rowconfigure $cs.fm 0 -weight 1

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