| 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

Scrolledtext

The scrolledtext iwidget provides all the functionality of the standard Tk text widget along with scrollbar and label control. The set of methods has been extended to include import and export file capabilities. For further information, see the Scrolledtext manpage

Components: clipper horizsb hull label text vertsb
				

wm title . "Scrolledtext Example"

##=========================================================
##	Create a Scrolledtext iwidget
##
##	Notice that the horizontal scrollbar 
##	will not become visible until it is 
##	needed, since -hscrollmode = dynamic
##=========================================================
##
iwidgets::scrolledtext .st \
  -labeltext "Scrolledtext Example" \
  -visibleitems 70x20 \
  -textfont {Courier 10} \
  -textbackground black \
  -vscrollmode dynamic \
  -hscrollmode dynamic \
  -wrap none

pack .st \
  -fill both \
  -expand true

##
##	Change the text color of the text widget
##
.st component text configure \
  -foreground green

.st import [file join / usr local tcl8.3.3 README]

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