Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Miniwindows ➜ hotspot cancelmousedown

hotspot cancelmousedown

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Retnur   (9 posts)  Bio
Date Thu 18 Nov 2010 07:54 PM (UTC)
Message
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.
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 18 Nov 2010 08:34 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Retnur   (9 posts)  Bio
Date Reply #2 on Fri 19 Nov 2010 04:04 AM (UTC)
Message
That was exactly the problem. (I'm working on a mapper as well.)
Top

Posted by Retnur   (9 posts)  Bio
Date Reply #3 on Fri 19 Nov 2010 04:48 AM (UTC)
Message
I should mention for future readers perhaps that I solved the problem with multiple layers for graphics using transparency.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


15,871 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.