13 February 2016, 11:14 | #1 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
Freeze at click after LockLayerinfo()
Hi,
I implemented a drag & drop and made it possible for the user to drag around something over the full screen. For this I do a pair of LockLayerInfo()/UnLockLayerInfo() on the Layerinfo of the screen. The drag can be started on a key press as well. And if I do that, and then press the left mouse button OUTSIDE OF MY WINDOW, everything freezes. I do not even get the SELECTDOWN message, perhaps because the click is outside if my window? The freeze appears to happen inside OS. Could someone tell me what I am doing wrong? I guess, because I do not get that message, my UnLockLayerInfo() is not called, and Intuition wants to draw the window border in unselected state. So, what would be the correct way to do here? greets, AGS Last edited by AGS; 13 February 2016 at 12:09. |
13 February 2016, 12:37 | #2 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
Well, I now listen to IDCMP_INACTIVEWINDOW when in dragging mode to catch the click outside of my window. It works and I hope, it is 'legal'.
|
13 February 2016, 12:50 | #3 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
Ah, now it only works if i click really outside my window. A click on the top border of my window still causes the freeze.
|
22 February 2016, 18:42 | #4 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
I think I found a solution: Open a screen-sized borderless nocarerefresh nobackfill window with rmbtrap on top of all other windows on the screen and only listen for the messages I need. I.e. mouse button press or release. And after that close that window and ask whichlayer() for the coordinates where the mouse button was pressed or released.
|
22 February 2016, 20:14 | #5 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
How is it possible to click anywhere while you drag something?
Drag & drop means that you click on something and while you hold the mouse button down drag it somewhere else and then drop it by lifting the mouse button. How can you click anywhere while you hold the button pressed already? |
22 February 2016, 20:22 | #6 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
Hi,
I implemented keyboard control. When I take a key press to start the drag, the mouse button still can be pressed down. But yet I deactivated this due to this problem. It is really unusual as you said. I was just wondering if it is possible. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wb 3.1 LoadWB freeze | Bamiga2002 | support.Apps | 0 | 10 January 2012 12:06 |
Paula freeze | Cosmos | Coders. General | 2 | 15 July 2010 09:01 |
Winuae 1.5.2. freeze | universale | support.WinUAE | 16 | 26 September 2008 16:34 |
How to freeze the cartridges | landex | support.WinUAE | 3 | 27 November 2007 22:14 |
click click bloody click | Dave_wb | support.Hardware | 14 | 12 April 2005 09:31 |
|
|