"Fossies" - the Fresh Open Source Software Archive 
Member "namefix.pl/libs/gui/links.pm" (13 Dec 2008, 1310 Bytes) of package /linux/privat/old/namefix.pl_4.0.2.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "links.pm" see the
Fossies "Dox" file reference documentation.
1 use strict;
2 use warnings;
3
4 #--------------------------------------------------------------------------------------------------------------
5 # HTML Link List Dialog
6 #--------------------------------------------------------------------------------------------------------------
7
8 sub show_links
9 {
10 my $links_txt = join("", &readf($main::links));
11
12 my $top = $main::mw -> Toplevel();
13 $top -> title("Links");
14
15 my $top_lab = $top -> Label
16 (
17 -text=>"Links",
18 -font=>$main::dialog_title_font
19 )
20 -> grid
21 (
22 -row => 1,
23 -column => 1,
24 -columnspan => 2
25 );
26
27 my $txt = $top -> Scrolled
28 (
29 "ROText",
30 -scrollbars=>"osoe",
31 -font=>$main::dialog_font
32 )
33 -> grid
34 (
35 -row => 2,
36 -column => 1,
37 -columnspan => 2
38 );
39 $txt->menu(undef);
40
41 $txt -> insert('end', "$links_txt");
42
43 my $but_close = $top -> Button
44 (
45 -text=>"Close",
46 -activebackground => 'white',
47 -command => sub
48 {
49 destroy $top;
50 }
51 )
52 -> grid
53 (
54 -row => 4,
55 -column => 1,
56 -columnspan => 2
57 );
58
59 $top->resizable(0,0);
60 }
61
62 1;