I'm having issues with getting the mouseup callback consistently. Very often it seems to cancel down instead. Under what conditions should the be happening? I'm not moving mouse out of hotspot, esc, and its not a mouse hardware issue. Furthermore, I'm using v4.61 under ubuntu 10.10.
hotspot cancelmousedown
Posted by Retnur on Thu 18 Nov 2010 07:54 PM — 4 posts, 17,773 views.
Is it possible the hotspot is being recreated? I had a similar issue a while back, for example in the mapper. If you mouse-down, then while you are holding the mouse the window is redrawn for some reason, then it loses that hotspot, if you aren't careful anyway.
See:
http://www.gammon.com.au/scripts/doc.php?function=WindowCreate
If this is the case for you, you might want to set the flag:
miniwin.create_keep_hotspots = 16
That way, even if the window is recreated, the hotspots (and their memory of if you just pressed a mouse in them) is retained.
See:
http://www.gammon.com.au/scripts/doc.php?function=WindowCreate
If this is the case for you, you might want to set the flag:
miniwin.create_keep_hotspots = 16
That way, even if the window is recreated, the hotspots (and their memory of if you just pressed a mouse in them) is retained.
That was exactly the problem. (I'm working on a mapper as well.)
I should mention for future readers perhaps that I solved the problem with multiple layers for graphics using transparency.