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 ➜ Bug reports ➜ Get/Lose Focus World Events not called/called multiple times

Get/Lose Focus World Events not called/called multiple times

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


Posted by Ircria   (24 posts)  Bio
Date Sat 09 Jun 2012 03:01 PM (UTC)
Message
I'm unsure if this is a bug or is intentional, but the Get and Lose Focus world events seem to be called a bit strangely. On alt+tabbing out of MUSHclient, Lose Focus is called twice instead of once (confirmed by echoes on hooked function). As well, Lose Focus is not called when entering one of MUSHclient's dialog windows (such as triggers (ctrl+shift+8), but Gain Focus is called when leaving them. It seems to be a bit inconsistent in that regard.

Client and system info:
OS - Microsoft Windows 7 (x64)
Client Version - 4.81
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 09 Jun 2012 09:18 PM (UTC)
Message
The get/lose focus callbacks are basically sent when the Windows message about that is received by the client. However it is based on MFC (Microsoft Foundation Class) library, which also mucks around with messages.

I don't know why you are getting this behaviour, except possibly some check in the middle of MFC is absorbing some of the messages.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


11,460 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.