File: label

package info (click to toggle)
libcdk-perl 4.9.10-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 912 kB
  • ctags: 410
  • sloc: perl: 6,419; sh: 27; makefile: 4
file content (29 lines) | stat: -rwxr-xr-x 517 bytes parent folder | download | duplicates (4)
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
27
28
29
#!/usr/bin/perl -w
# $Id: label,v 1.2 2002/07/27 20:11:17 tom Exp $

#
# Purpose:
#	To demonstrate the Perl5 Cdk Label Widget.

#
# Initialize Cdk.
#
use Cdk;
Cdk::init();

# Set up the label rows.
my @mesg = ("<C>This is a test of the Perl Cdk extension.",
		"", "",
		"<L></22>Written by...",
		"<C></5/R>Mike Glover");

# Create the label object.
my $title = new Cdk::Label ('Message' => \@mesg);

# Draw the label.
$title->set ('BoxAttribute' => "</B>");
$title->draw ();
$title->wait();

# Exit Cdk.
Cdk::end();