Re: PHP-GTK App on different resolutions...

From: Date: Mon, 05 Nov 2001 12:11:01 +0000
Subject: Re: PHP-GTK App on different resolutions...
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-534@lists.php.net to get a copy of this message
No idea if this is what you're thinking of, or if it'll help, but I use the following to check screen resolutions on window instances and define the width and height I pass to GtkWindow:
        if (Gdk::screen_width() >= 1024) {
                $width = intval(Gdk::screen_width() * .5);
                $height = intval(Gdk::screen_height() * .5);
        }
        else {
                $width = 512;
                $height = 384;
        }
At 10:03 PM Sunday, 11/04/2001, PQ Administrator wrote:
Ive created an application and set the Glade properties of the main window to "auto-shrink on". Is this what determines when the app is too big for the screen res. it shrinks to fit? I cant seem to figure out how to make the app fit in a 800x600 res., is this something on Glade side, or the coding side? TIA Troy McComas Networks/System Admin. & Developer <http://www.physicianquest.com>PhysicianQuest.com <mailto:admin@physicianquest.com>admin@physicianquest.com Office - (818)550-8777 or (626)282-0288 Cell- (626)255-9833 ---------- Powered by <http://www.physicianquest.com>PhysicianQuest.com122f53.jpg-- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net For additional commands, e-mail: php-gtk-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.gtk.general (#534) next »