Thread Breite eines Fensters: anpassen (13 answers)
Opened by pktm at 2004-07-08 12:20

pktm
 2004-07-08 12:50
#42323 #42323
User since
2003-08-07
2921 Artikel
BenutzerIn
[Homepage]
user image
Naja, ich weis jetzt nicht wirklich, wo cih die größe hinschreiben soll. Bei mir ändert sich da nichts:
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
42
43
44
45
46
#!/Perl/bin/perl

use strict;
use warnings;
use Tk;
use Tk::Notebook;

my $mw = MainWindow->new();

my $toplevel = $mw->toplevel();

# Die Menueleiste wird in den Kopf des Fensters gehaengt
my $menubar = $toplevel->Menu(-type => 'menubar');
$toplevel->configure(-menu => $menubar);

# Nun bauen wir ein Datei-Menue
my $datei = $menubar->cascade(-label => '~Datei',
-tearoff => 0
);

$datei->command(-label => 'Neu', -command => sub{newConfig()});
$datei->command(-label => 'Öffnen', -command => sub{openConfig()});
$datei->command(-label => 'Bearbeiten', -command => sub{editConfig()});
$datei->command(-label => 'Löschen', -command => sub{delConfig()});
$datei->command(-label => 'Piep', -command => [$mw=>'bell']);
$datei->command(-label => 'Quit', -command => [$mw=>'destroy']);

my $konfiguration = $menubar->cascade(-label => '~Konfiguration',
-tearoff => 0);

$konfiguration->command(-label => 'Konfiguration übernehmen', -command => sub{insertConfig()} );



MainLoop();

# ------------------------
# SUBS
# ------------------------

sub newConfig {
my $w = $mw->NoteBook()->pack();
my $page1 = $w->add("Neu", -anchor=>'w');
$page1->Label(-text => 'In Seite 1')->pack();

}

Da wo keine Fehlermeldung kommt wenn ich , -width=>400 eintrage ändert die Option nichts an der Fenstergröße :(
http://www.intergastro-service.de (mein erstes CMS :) )

View full thread Breite eines Fensters: anpassen