RE: Perl/Tk Entry widget questions

2002-01-07 Thread Dunnigan,Jack [Edm]
If you are inserting something programmatically, then why not check it before you insert :) Anyways, it doesn't do that for me? Run this script and tell me what it does.. ## use Tk; use Tk::LEntry; use strict; my $max=10; my $status="HELLO"; my $mw=new MainWindow; my $e=$m

RE: Perl/Tk Entry widget questions

2002-01-07 Thread Adam Frielink
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Dunnigan,Jack [Edm] > > > >-Original Message- > >From: Adam Frielink [mailto:[EMAIL PROTECTED]] > >Sent: Monday, January 07, 2002 12:16 PM > > >Thanks Jack. I guess I wasn't specific enough

RE: Perl/Tk Entry widget questions

2002-01-07 Thread Dunnigan,Jack [Edm]
>-Original Message- >From: Adam Frielink [mailto:[EMAIL PROTECTED]] >Sent: Monday, January 07, 2002 12:16 PM >Thanks Jack. I guess I wasn't specific enough in my original post to say >that I cannot allow an entry of more than 75 characters and not an entry box >of 75 character width. If

RE: Perl/Tk Entry widget questions

2002-01-07 Thread Adam Frielink
m: Dunnigan,Jack [Edm] [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 07, 2002 2:08 PM > To: 'Adam Frielink'; [EMAIL PROTECTED] > Subject: RE: Perl/Tk Entry widget questions > > > You will need to use -validatecommand -- or -- > > Nick Ing-Simmons wrote a small pac

RE: Perl/Tk Entry widget questions

2002-01-07 Thread Swartwood, Larry H
--- From: Swartwood, Larry H Sent: Monday, January 07, 2002 12:05 PM To: 'Adam Frielink'; '[EMAIL PROTECTED]' Subject: RE: Perl/Tk Entry widget questions Oops. Forgot the all important pack(). Should be: $entry->Entry( -textvariable => \$my_var, -width => 75)->p

RE: Perl/Tk Entry widget questions

2002-01-07 Thread Dunnigan,Jack [Edm]
m Frielink [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 12:00 PM To: [EMAIL PROTECTED] Subject: Perl/Tk Entry widget questions Greetings, Here is a simple one, does anyone know how to limit the length of a Entry widget in Tk to be no more than 75 characters? Will this require a Validat

RE: Perl/Tk Entry widget questions

2002-01-07 Thread Tillman, James
> $entry->Entry( -textvariable => \$my_var, -width => 75); > > http://w4.lns.cornell.edu/~pvhp/ptk/doc/ ...where the documentation states: Name: width Class: Width Configure Option: -width Specifies an integer value indicating the desired width of the entry window, in average-size character

RE: Perl/Tk Entry widget questions

2002-01-07 Thread Swartwood, Larry H
ect: RE: Perl/Tk Entry widget questions $entry->Entry( -textvariable => \$my_var, -width => 75); http://w4.lns.cornell.edu/~pvhp/ptk/doc/ Larry S. -Original Message- From: Adam Frielink [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 12:00 PM To: [EMAIL PROTECTED

RE: Perl/Tk Entry widget questions

2002-01-07 Thread Swartwood, Larry H
$entry->Entry( -textvariable => \$my_var, -width => 75); http://w4.lns.cornell.edu/~pvhp/ptk/doc/ Larry S. -Original Message- From: Adam Frielink [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 12:00 PM To: [EMAIL PROTECTED] Subject: Perl/Tk Entry widget questions

Perl/Tk Entry widget questions

2002-01-07 Thread Adam Frielink
Greetings, Here is a simple one, does anyone know how to limit the length of a Entry widget in Tk to be no more than 75 characters? Will this require a Validate callback, or is there an option that can be setup when I create the Entry widget? Thanks, Adam Frielink Tyco Plastics _