1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#!/usr/bin/perl -w
# $Id: marquee,v 1.2 2002/07/27 20:11:17 tom Exp $
#
# Purpose:
# To demonstrate the Perl5 Cdk Marquee Widget.
#
# Initialize Cdk.
#
use Cdk;
Cdk::init();
# Create the message to scroll.
my $message = "</5>Hello there</K>!!!<!K> How are you today?<!5> ";
# Create the marquee object.
my $marquee = new Cdk::Marquee ('Width' => 20);
# Activate the marquee object.
$marquee->activate ('Message' => $message,
'Delay' => 3,
'Repeat' => 3);
# Exit Cdk.
Cdk::end();
|