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 #7818 is a reply to message #7817] Wed, 24 January 2007 13:34 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
James Thomas wrote on Wed, 24 January 2007 06:25

the source control and using SetCapture to route all CursorImage



Ooops. Yes SetCapture spoils the fun Smile

Quote:


For instance, if there was a way to either hook onto CursorImage events or set the default mouse pointer (as far I can tell this currently impossible - Image::Arrow() is specified directly all over the place) it would solve one my problems and I could work around the rest.



Actually, it is possible to hook mouse messages:

static void Ctrl::InstallMouseHook(MouseHook hook);

See CtrlLib/ToolTip.cpp for usage example.

OTOH, I do not think this is a good idea for D&D.

Quote:


I hope this makes sense. If I have time today I might imlpement an app to illustrate the problem.


Definitely makes sense.

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: Sun Jun 08 22:27:33 CEST 2025

Total time taken to generate the page: 0.04769 seconds