Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Question: detect when mouse released after OnMove
Fri, Dec 15 2023 10:31 PMPermanent Link

erickengelke

Avatar

Does anyone know if there is a way to detect when the mouse is released after a mouse-controlled TPanel move

Here's the problem, I can detect when and where the panel is moved, but it will keep firing events, I never know when the move is final and the mouse is released.

OnMouseUp and OnMouseDown are not called if you use a Move, so that doesn't help.

Any suggestions?

Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Sat, Dec 16 2023 11:21 AMPermanent Link

erickengelke

Avatar

erickengelke wrote:

> Does anyone know if there is a way to detect when the mouse is released after a mouse-controlled TPanel move

I found the solution, I was using Movable, but should have implemented Drag and Drop, the latter solves it perfectly.

Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Image