Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How to find the top-most window the mouse is over (Linux)?
Re: How to find the top-most window the mouse is over (Linux)? [message #7812 is a reply to message #7809] Wed, 24 January 2007 00:14 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
static Ctrl *Ctrl::GetMouseCtrl();

returns (child) widget with mouse.

TopWindow *Ctrl::GetTopWindow();

returns window child widget is in. Therefore:

Ctrl *GetMouseWindow()
{
   Ctrl *q = Ctrl::GetMouseCtrl();
   return q ? q->GetTopWindow() : NULL;
}


should solve your problem.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Appearance of disabled Button/ButtonOption does not match when using images
Next Topic: Grabbing mouse events
Goto Forum:
  


Current Time: Sat Jun 07 20:59:03 CEST 2025

Total time taken to generate the page: 0.04093 seconds