#!/usr/bin/perl -w # $Id: mentry,v 1.2 2002/07/27 20:11:17 tom Exp $ # # Purpose: # To demonstrate the Perl5 Cdk Mentry Widget # # Load in the Cdk Extension. # use Cdk; # # Initialize Cdk. # Cdk::init(); # Create the multi-line entry object. $mentry = new Cdk::Mentry ('Label' => "Filename: ", 'Width' => 20, 'Prows' => 5, 'Lrows' => 10); # Activate the object. my $filename = $mentry->activate(); # Check the results. if (!defined $filename) { popupLabel (["Escape hit. No information returned."]); } else { popupLabel (["You typed in", "$filename"]); } # Shut down Cdk. Cdk::end();