Thread Main Window in der Mitte plazieren
(7 answers)
Opened by fabmo at 2007-09-21 16:24 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 my $MamaGUI = new MainWindow( -title => "Mein Programm"); # Größe des Fensters: my $windowHeight = "600"; my $windowWidth = "800"; # Bildschirmgröße holen: my $screenHeight = $MamaGUI->screenheight; my $screenWidth = $MamaGUI->screenwidth; # MamaGUI zentrieren: $MamaGUI->geometry($windowWidth."x".$windowHeight); $MamaGUI->geometry("+" . int($screenWidth/2 - $windowWidth/2) . "+" . int($screenHeight/2 - $windowHeight/2) ); # minimale Größe festlegen: $MamaGUI->minsize( 400, 300); Von Crians Homepage OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/) -- Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html Perl-Entwicklung: http://perl-services.de/ |