disabling default event handlers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jon

    #1

    disabling default event handlers

    I have written a custom event handler for the mousewheel
    event, but in addition to my custom event handler code,
    the default event handler behavior is still being
    executed. For the mousewheel event, I believe this is to
    adjust the scrollbar position. This is producing
    undesirable results in my application and I want to
    disable this default behavior. Can anyone help me with
    this?
  • Michael Culley

    #2
    Re: disabling default event handlers

    If there is an OnMouseWheel virtual function then you should override this
    and remove the line that calls the base class.

    "Jon" <jhirsch3@netze ro.net> wrote in message
    news:167c01c385 63$525d5250$a00 1280a@phx.gbl.. .[color=blue]
    > I have written a custom event handler for the mousewheel
    > event, but in addition to my custom event handler code,
    > the default event handler behavior is still being
    > executed. For the mousewheel event, I believe this is to
    > adjust the scrollbar position. This is producing
    > undesirable results in my application and I want to
    > disable this default behavior. Can anyone help me with
    > this?[/color]


    Comment

    Working...