head	1.3;
access;
symbols
	iwidgets-4-0-1:1.3
	iwidgets-4-0-0:1.3
	iwidgets_overhaul:1.1.0.6
	iwidgets-2-2-0:1.1.1.1
	lucent:1.1.1
	tclpro-1-5-0:1.1
	tclpro-1-4-1:1.1
	tclpro-1-4-0:1.1
	itcl-3-2-0:1.1
	ajuba-ajuba2-2-0:1.1
	scriptics-sc-2-0-b5:1.1
	scriptics-sc-2-0-fixed:1.1
	scriptics-sc-2-0-b2:1.1
	scriptics-sc-2-0-b1:1.1
	scriptics-sc-1-1:1.1
	scriptics-sc-1-1-b1:1.1
	scriptics-sc-1-1-branch:1.1.0.4
	scriptics-sc-1-1-base:1.1
	scriptics-sc-1-0:1.1
	scriptics-sc-1-0-branch:1.1.0.2
	scriptics-sc-1-0-base:1.1
	scriptics-bc-1-0-b1:1.1
	scriptics-tclpro-1-3-0:1.1
	scriptics-tclpro-1-3-b4:1.1
	itcl-3-1-0:1.1
	scriptics-tclpro-1-3-b3:1.1
	scriptics-tclpro-1-2:1.1
	scriptics-tclpro-1-2-b2:1.1
	scriptics-tclpro-1-2-b1:1.1
	scriptics-tclpro-1-2-a1:1.1
	itcl-3-0-1:1.1
	itcl3-0-1:1.1
	stanton:1.1;
locks; strict;
comment	@# @;


1.3
date	2001.08.20.19.09.59;	author smithc;	state Exp;
branches;
next	1.2;

1.2
date	2001.08.07.19.56.47;	author smithc;	state Exp;
branches;
next	1.1;

1.1
date	98.07.27.18.51.34;	author stanton;	state Exp;
branches
	1.1.1.1
	1.1.6.1;
next	;

1.1.1.1
date	2001.04.25.04.01.14;	author davygrvy;	state Exp;
branches;
next	;

1.1.6.1
date	2001.08.07.19.18.25;	author smithc;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Updating demos for Iwidgets4.0.0 release.
@
text
@# ----------------------------------------------------------------------
#  DEMO: entryfield in [incr Widgets]
# ----------------------------------------------------------------------
package require Iwidgets 4.0

option add *textBackground seashell
. configure -background white

iwidgets::entryfield .login -labeltext "Login:" -labelpos nw \
    -command { focus [.passwd component entry] }
pack .login -padx 4 -pady 4

iwidgets::entryfield .passwd -labeltext "Password:" -labelpos nw -show "\267" \
    -command { focus [.phone component entry] }
pack .passwd -padx 4 -pady 4

iwidgets::entryfield .phone -labeltext "Phone:" -labelpos nw \
    -command { focus [.login component entry] } \
    -validate {check_phonenum %W "%c"}
pack .phone -padx 4 -pady 4

proc check_phonenum {entry char} {
    set current [$entry get]
    set len [string length $current]
    if {$len == 3 || $len == 7} {
        $entry delete 0 end
        $entry insert 0 "$current-"
    }
    if {$len < 12 && [string match {[0-9]} $char]} {
        return 1
    }
    return 0
}
@


1.2
log
@Merging iwidgets_overhaul branch to CVS head.
@
text
@d4 1
a4 1
package require Iwidgets 3.0
@


1.1
log
@Initial revision
@
text
@a0 1
#!/bin/sh
a3 2
#\
exec itkwish "$0" ${1+"$@@"}
a5 2
# itkwish interprets the rest...
# ----------------------------------------------------------------------
@


1.1.6.1
log
@This merge is from the iwidgets_overhaul branch created by Chad Smith
to extract the [incr Widgets] from the [incr Tcl] distribution.  See
the CHANGES file for a list of changes I made to this distribution.
The new [incr Widgets] version number is 4.0.0.
@
text
@d1 1
d5 2
d9 2
@


1.1.1.1
log
@import of current 2.2.0
@
text
@d6 2
a7 2
exec itkwish -f "$0" ${1+"$@@"}
package require -exact Iwidgets 2.2
@

