Re: window size
- From: Thomas Ledbetter <tledbett revelstone net>
- To: Sergio Rua <srua esware com>
- Cc: <gtk-perl-list gnome org>
- Subject: Re: window size
- Date: Wed, 3 Oct 2001 09:23:45 -0400 (EDT)
On Wed, 3 Oct 2001, Sergio Rua wrote:
Hello,
I'm making a program who will be resized to the XWindow
resolution (1024x768, etc). How can I get this resolution?
Hi!
The following snippet worked for me, although the interface was designed
with Glade 'mind the window reference..
# grab geometry
($x,$y,$w,$h,undef) = $window->TOPLEVEL->window->get_geometry();
# and current position
($x,$y) = $window->TOPLEVEL->window->get_position();
Hope this helps! :)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]