Thread Menü mit Icons und Editbox (10 answers)
Opened by Robby at 2003-12-01 11:34

Robby
 2003-12-01 16:02
#46133 #46133
User since
2003-08-11
409 Artikel
BenutzerIn
[default_avatar]
ähm, ja, das hier tut...

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/local/bin/perl -w
use Tk;
use Tk::Compound;
my $mw = MainWindow->new;
my $b = $mw->Button(-command => [destroy => $mw])->pack;
my $i = $b->Compound;
$i->Line;
$i->Text(-text => 'Line');
$i->Space(-width => '3m');
$i->Text(-text => 'one');
$i->Line;
$i->Bitmap(-bitmap => 'warning');
$i->Line;
$i->Text(-text => 'Line2');
$b->configure(-image => $i);

my $b2 = $mw->Button(-command => [destroy => $mw], -image => $i)->pack;

MainLoop;


coooool :)
Kaum macht man es richtig - schon funktioniert es!

View full thread Menü mit Icons und Editbox