Another IE Browser problem
-
Hi! I'm trying to handle WebBrowser control events. I wrote program exactly as described in this document http://support.microsoft.com/?id=312777[^] but it work only partly :~ . I recieve event but WebBrowser is behaving strange. When I use mouse wheel to scroll in the page it does nothing, or when I click on button it doesn't change it's state to pushed (but i recieve event). When I remove this event handler it works ok. :confused: Thank you! i'm only pointer to myself
-
Hi! I'm trying to handle WebBrowser control events. I wrote program exactly as described in this document http://support.microsoft.com/?id=312777[^] but it work only partly :~ . I recieve event but WebBrowser is behaving strange. When I use mouse wheel to scroll in the page it does nothing, or when I click on button it doesn't change it's state to pushed (but i recieve event). When I remove this event handler it works ok. :confused: Thank you! i'm only pointer to myself
Tomáš Petříček wrote: When I use mouse wheel to scroll in the page it does nothing, Try iEvent.onmousewheel instead of iEvent.onmouseover Tomáš Petříček wrote: when I click on button it doesn't change it's state to pushed (but i recieve event). When I remove this event handler it works ok. If you receive the event, it's like preventing the web control from doing the standard handling. That's probably why the OnClick event handler is rarely used. That said, I believe that if you set IHTMLEventObj.cancelBubble = false, you can allow the event to be routed, and give it a chance to be normally processed.
-
Hi! I'm trying to handle WebBrowser control events. I wrote program exactly as described in this document http://support.microsoft.com/?id=312777[^] but it work only partly :~ . I recieve event but WebBrowser is behaving strange. When I use mouse wheel to scroll in the page it does nothing, or when I click on button it doesn't change it's state to pushed (but i recieve event). When I remove this event handler it works ok. :confused: Thank you! i'm only pointer to myself