Re: window size

On Wed, 3 Oct 2001, Sergio Rua wrote:


      I'm making a program who will be resized to the XWindow
      resolution (1024x768, etc). How can I get this resolution?


  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]