Yes, the only thing that fixed it was adding a component to the TMDIChild (a button), or switching between forms. Even when I can make the OnExit fire, putting SetFocus() to the form doesn't seem to do anything.
I think you're right; I added a TEdit to my main form to test the OnExit event, and it fired correctly. But I guess my TMDIChild objects are not considered components of the mainform? Unfortunately, clicking on another component seems to just transfer the zoom problem.
According to help, "The OnExit event does not occur when switching between forms or between another application and your application." So, I guess it's not firing because I'm moving between a form and a TCheckListBox.
So far today I've tried SetFocus() and UpdateWindowState(); no luck yet...
Thanks for your help.
No, Zoom() is never called when I encounter this problem, because it's inside OnMouseWheel of the form. It does hit when I use the hotkey.
I found another interesting part of this problem, which is that OnKeyPress events are lost as well. OnKeyDown events still hit as...
Yes, it hits the OnActivate event correctly, and some of the mouse events, including middle mouse click, are working. It's only the mouse wheel scrolling that seems to be lost. I've tried using SetCaptureControl when the form activates, but so far it doesn't have any effect.
Hello,
I am using Builder C++ 6.
I have a TForm descendent which zooms when the mouse wheel is moved. When I deactivate the the form by clicking on something else (e.g. TEdit or TCheckListBox), then click back into the form, other mouse events are handled correctly, but I lose the mouse wheel...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.