Date: Fri, 8 Aug 2003 15:43:14 +0100 To: lablgtk at kaba.or.jp Subject: Getting the absolute position of a mouse click on a drawing area Message-ID: <20030808144314.GA14603 at redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline From: Richard Jones Hi: I'm trying to implement a tooltip on a drawing area widget. Unfortunately I can't use the ordinary tooltips because I need to change the text on the tooltip depending on where the mouse is hovering. It's for annotating a graph. So far I've successfully created a window which pops up after 500 ms by using motion notify events and so on. However, I can't position the window near the mouse. I need to get the absolute mouse position (or the absolute position of the last motion notify event). How can I do this? There doesn't seem to be a way to get this information. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. 'There is a joke about American engineers and French engineers. The American team brings a prototype to the French team. The French team's response is: "Well, it works fine in practice; but how will it hold up in theory?"'