Re: Strange behaviour in mouse up



pri_sama wrote:
Hello !

  I have added a line to invoke 'notepad.exe' ( using shell execute )in
mouse down event of a TShape component. When I press left mouse button,
even if I don't release mouse button, mouse up event is fired. Can you
please explain this behaviour ? ( Delphi 5 )

....like you shift focus to another control in code ?

When having problems like this, try to reproduce the problem with the smallest amount of code neede to still see the problem. It will be much easier e.g. for us to read at a later point. And you will more likely find the problem.
A concrete suggestion: Create a new project, put a TShape on a form, and fill in an OnMouseUp handler that e.g. writes the Form.Caption. Is the very same thing happening then ?


Bjorge
.


Quantcast