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   |
 |
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
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
|
|
|
 |
|
Problems with CursorImage/Popups/Frames on X11
By: mrjt on Fri, 30 November 2007 17:09
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mirek on Tue, 04 December 2007 15:24
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Wed, 05 December 2007 17:00
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Mon, 10 December 2007 17:37
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mirek on Mon, 10 December 2007 18:06
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Mon, 10 December 2007 18:27
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mirek on Mon, 10 December 2007 18:49
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Tue, 11 December 2007 12:45
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mirek on Sat, 29 December 2007 18:55
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Thu, 03 January 2008 11:09
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mirek on Thu, 03 January 2008 18:01
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Thu, 03 January 2008 18:29
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Tue, 22 January 2008 10:52
|
Goto Forum:
Current Time: Sat Jun 07 06:33:36 CEST 2025
Total time taken to generate the page: 0.04710 seconds
|