Re: How to get the initial position?
- From: Olexiy Avramchenko <ath beast stu cn ua>
- To: Duncan Chang <DuncanChang via com tw>
- Cc: "'gtk-list gnome org'" <gtk-list gnome org>
- Subject: Re: How to get the initial position?
- Date: Wed, 02 Oct 2002 14:40:55 +0300
Duncan Chang wrote:
>Hi all:
> As we know we can get the position from : gdk_window_get_position(),
> but why I always got x=0 and y=0 for a dialog widget that I created
>initialized.
> But from the widget on screen, it was not at left-top corner
>obviously, why??
>
Because the dialog window is a ( !GTK_WIDGET_NO_WINDOW() ) (it has a
window),
so it has an unique gdk window. Your widget on screen looks like a
GTK_WIDGET_NO_WINDOW()
widget (GtkButton, GtkLabel for example) - it uses the window of his parent.
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]