Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dguttman

    Losing mouse wheel events after for deactivated

    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.
  2. dguttman

    Losing mouse wheel events after for deactivated

    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.
  3. dguttman

    Losing mouse wheel events after for deactivated

    The OnExit never fires. OnEnter fires once, the first time I click on it.
  4. dguttman

    Losing mouse wheel events after for deactivated

    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...
  5. dguttman

    Losing mouse wheel events after for deactivated

    It looks like it never hits OnExit, even when the object is no longer visible.
  6. dguttman

    Losing mouse wheel events after for deactivated

    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...
  7. dguttman

    Losing mouse wheel events after for deactivated

    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.
  8. dguttman

    Losing mouse wheel events after for deactivated

    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...

Part and Inventory Search

Back
Top