English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 13 February 2016, 11:14   #1
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
Question 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.
AGS is offline  
Old 13 February 2016, 12:37   #2
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
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'.
AGS is offline  
Old 13 February 2016, 12:50   #3
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
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.
AGS is offline  
Old 22 February 2016, 18:42   #4
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
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.
AGS is offline  
Old 22 February 2016, 20:14   #5
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
Quote:
Originally Posted by AGS View Post
I implemented a drag & drop
Quote:
Originally Posted by AGS View Post
when in dragging mode to catch the click
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?
thomas is offline  
Old 22 February 2016, 20:22   #6
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
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.
AGS is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:38.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07045 seconds with 15 queries