U++ framework
Do not panic. Ask here before giving up.

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: 14291
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 Sep 19 07:40:33 GMT+2 2026

Total time taken to generate the page: 0.00638 seconds