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 #7820 is a reply to message #7819] Wed, 24 January 2007 17:01 Go to previous message
James Thomas is currently offline  James Thomas
Messages: 26
Registered: June 2006
Promising Member
Since I thought it would be interesting and I wanted to test out an implementation using templates (somewhat inspired by WithDropList) I've now written a test app that demonstrates what I'd like to achieve and shows two methods of implementing drag-drop between controls using GetData/SetData.

My real-world app obviously requires a more complicated implementation than this but the method I use is identical.

Written for 612-dev-3 and only tested on XP. Should compile with GCC but one method won't work in Linux (which is the whole problem Smile).

p.s. Sorry for having all the function bodies in the headers. I can't get MSVC8 to link templated classes with the body outside the class and I'm too lazy to fix it.
  • Attachment: DragTest.zip
    (Size: 5.80KB, Downloaded 337 times)
 
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 09:36:31 CEST 2025

Total time taken to generate the page: 0.05695 seconds