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 » TopWindow&PopUp, TrayIcon » Problems with CursorImage/Popups/Frames on X11
Re: Problems with CursorImage/Popups/Frames on X11 [message #12999 is a reply to message #12963] Tue, 04 December 2007 15:24 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
mrjt wrote on Fri, 30 November 2007 11:09

To cut a long story short, because of some missing windowing events in X11 (notable the equivalent of WM_EXITSIZEMOVE) I've ended up in a position where the only solution to a problem is to imitate a window using a popup. How they expect you to be able to implement anything clever in X11 with such an inadequate messaging system I have no idea Mad

This means I have to implement moving/resizing of the popup, which works fine. What doesn't work is setting the cursor icons. The SizeVert/SizeHorz icons appear when you mouse over the frames at first, but after you move/resize the window the popup seems to stop recieving MOUSEMOVE events to FrameMouseEvent. Additionally, while the popup has mouse capture my CursorImage overload is returning the correct image, but the cursor remains as an arrow.

I've also tried to use OverrideCursor with no effect.

Everything works correctly when the Ctrl is not a popup, so it must be something to do with this.

I've attached my test project and I'd really appreciate it if you'd have a look as I've completely run out of ideas. Sorry to give such a complex test case.

Edit: Click 'OK' on the first window to open the popup.

Cheers,
James


Well, technically, the problem is that SetCapture does not work correctly for Popup in X11. While that could be fixed (barely), the real trouble is that you CANNOT use popup as main window in X11. The real reason is that X11 window manager knows nothing about popups, therefore clicking on any other windows (outside your app) is not able to change popup's Z.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Painting below your window, not bleeding into your window...
Next Topic: Toolbox inside a TopWindow
Goto Forum:
  


Current Time: Sat Jun 07 06:33:36 CEST 2025

Total time taken to generate the page: 0.04710 seconds