[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Window Position



I'm trying to display a window centered on top of another. If there is no API to
do this directly, I'll need to get the position of the parent window, and the
sizes of both the parent and the child, compute the desired position of the
child and then, yes, gtk_widget_set_uposition works like a charm. My problem is
that if the parent window is not moved on the screen by the user (via mouse),
the position and/or the size are not set. Similarly, the window to be centered,
I find it of having a size of (1,1), which is hardly true as I see on the screen
immediately after I make it visible.

Obviously, I'm either using the wrong API, or picking the wrong moment to use
it, or using it the wrong way, or any combinations of the above, or I'm using
gtk for a purpose it wasn't designed for. Can anybody enlighten me?

thanx

-----Original Message-----
From:   gtk-app-devel-list@redhat.com 
Sent:   16 November, 1998 22:45
To:     gtk-app-devel-list@redhat.com
Subject:        Re: Window Position


        Thanks. That works.

--
=================================================================
Artur Kedzierski,                               Artur@cs.ucr.edu
Computer Science Graduate Division 
University of California, Riverside   


On Tue, 17 Nov 1998, Germano Leichsenring wrote:

>  gtk_widget_set_uposition (); 
> should work.
> 
> 
> >     Is there anyway to give a initial position to a window in GTK+ ?
> >     The only possibilites for the placement that I have found are
> > none, center, and mouse.  I am using GTK+ 1.0.0. Do the newer version have
> > more options for that?
> >     Thanks.
> > 
> 
> 
> -- 
>          To unsubscribe: mail gtk-app-devel-list-request@redhat.com with 
>                        "unsubscribe" as the Subject.
> 
>       Mailing list concerns should be mailed to <listmaster@redhat.com>
> 


-- 
         To unsubscribe: mail gtk-app-devel-list-request@redhat.com with 
                       "unsubscribe" as the Subject.

        Mailing list concerns should be mailed to <listmaster@redhat.com>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]