Thread Liste mit Smilies laden ? (4 answers)
Opened by Froschpopo at 2005-04-29 14:06

Crian
 2005-04-29 14:10
#43838 #43838
User since
2003-08-04
5871 Artikel
ModeratorIn
[Homepage]
user image
Hier ist der ganze Abschnitt mit den Icons:

Code: (dl )
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
30
31
32
33
34
35
36
37
38
39
40
41
    #--------------------------------------------------------------------------
# Iconbar:
#--------------------------------------------------------------------------
my $fr = $mw->Frame(
)->pack(
-side => 'right',
-expand => 0,
-fill => 'y',
);
my $fff = $fr->Frame()->pack(-side => 'top');
my $c = 0;
for my $icon (@Icon) {
if ($c % 3 == 0) {
$fff = $fr->Frame()->pack(-side => 'top');
}
++$c;

#my $ph = $mw->Animation(
# -format => 'gif',
# -file => "$FindBin::RealBin/icons/" . $icon->{file},
#);

my $ph = $mw->Photo(
-file => "$FindBin::RealBin/icons/" . $icon->{file},
-width => 40,
-height => 30,
);

$fff->Button(
-command => sub {
print "Button zum Bild ", $icon->{file}, " -> '", $icon->{short},"'\n";
$Config{text_widget}->Insert(' ' . $icon->{short} . ' ');
$Config{changed} = 1;
$Config{changed_save} = 1;
},
-image => $ph,
-relief => 'flat',
)->pack(
-side => 'left',
);
}
s--Pevna-;s.([a-z]).chr((ord($1)-84)%26+97).gee; s^([A-Z])^chr((ord($1)-52)%26+65)^gee;print;

use strict; use warnings; Link zu meiner Perlseite

View full thread Liste mit Smilies laden ?