[gtk-list] Re: coordinates problem.




  Sorry for the title, I deleted the original message.
This message is for the guy who find a (0,0) coords for his
main application window (I think it'll be the same thing for
any main apps window or dialog window).

  Unnder X(t), if you create a window and ask for its coords,
you'll recieve the coords relative to the parent window, exept
for your main window which will be (0,0), the window itself.
There is a function to get the coords relative to the root
window: XTranslateCoordinates().
Maybe this is not handled (yet ;)) by gtk.

I can't assure you about all this here, but I hope that it'll be
useful for you anyway.

Patrice.



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