head	1.1;
access;
symbols
	iwidgets-4-0-1:1.1;
locks; strict;
comment	@# @;


1.1
date	2002.09.13.16.13.28;	author smithc;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Adding a new widget to the incoming directory.
@
text
@# ----------------------------------------------------------------------
#  DEMO: new collapsablewidget
# ----------------------------------------------------------------------
package require Iwidgets 4.0
source ../src/collapsablewidget.itk

. configure -background white

iwidgets::collapsablewidget .cw -labeltext "Label Text:"
pack .cw -padx 4 -pady 4

set win [.cw childsite]
label $win.ex -text "(put your widgets here)" \
    -background black -foreground white \
    -width 30 -height 3
pack $win.ex -expand yes -fill both -padx 4 -pady 4

button .toggle -text "Toggle display of collapsed region" -command {
    .cw toggle
}
pack .toggle -padx 4 -pady 4
@
