| 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

Labeledframe

The labeledframe iwidget is used as a base class iwidget for constructing other iwidgets. It consists of a grooved frame with a label and a childsite so that other widgets can be place inside of it. It contains options to display the frame and label to how the programmer desires. For further information, see the Labeledframe manpage

Components: childsite hull label
				

wm title . "Labeledframe Example"

##=========================================================
##	Create a Labeledframe iwidget
##
##	Note that this iwidget was intended
##	to be used as a base class iwidget,
##	not a general purpose iwidget that
##	is illustrated here.
##=========================================================
##
iwidgets::labeledframe .lf \
  -labelpos w \
  -labeltext "Labeledframe"

pack .lf \
  -fill both \
  -expand true


##
##	Need to get the childsite so that
##	we can properly pack other widgets
##	inside

set cs [.lf childsite]

##
##	Create an image and use the 
##	label widget to display it
##	inside the labeledframe
##
image create photo tcl -file ../tcl_logo_big.gif

label $cs.l \
  -image tcl
  
pack $cs.l \
  -fill both \
  -expand true \
  -padx 5 \
  -pady 5

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