mousewheel

Control key plus mouse wheel.

What's the better way to handle the ctrl + mouse wheel in C#? I've figured out how to handle the MouseWheel event but how to know that the ctrl key is being pressed too? Thanks in advance. ...

How do I suppress window mouse wheel scrolling...?

I'm working on a canvas app embedded in a page. I have it so you can zoom into the drawing with the mousewheel but unfortunately this scrolls the page as it is part of an article. Is it possible to prevent mousewheel scrolling on the window when I'm mousewheeling on a dom element?! ...

How to add mouse wheel support to a component descended from TGraphicControl?

I have created a delphi component which descends from TGraphicControl. Is it possible to add support for mouse wheels? --- Edit --- I've exposed the MouseWheel events as shown below but they aren't called. TMyComponent = class(TGraphicControl) published property OnMouseWheel; property OnMouseWheelDown; property OnMouseWheelUp; ...

Mouse Wheel Event (C#)

Hi, I can't get the Mouse Wheel event in the main form. As a demo I came up with a simple example: public partial class Form1 : Form { public Form1() { InitializeComponent(); this.panel1.MouseWheel += new MouseEventHandler(panel1_MouseWheel); this.panel1.MouseMove += new MouseEventHandler(panel1_MouseW...

Special mouse events in a browser: wheel, right-click?

Google maps is an impressive display of what you can do with javascript and Ajaxy-goodness. Even my mouse scroll wheel and right-click works to provide specific functionality. In the standard HTML spec, I don't see an "onmouserightclick" event or similar basic javascript handling for the mouse wheel. Maybe I am looking in the wrong pl...

disable the CTRL/Wheel zoom effect at runtime

How do you disable the ctrl/wheel zoom effect with css or javascript on certain elements. I create a menu bar that gets distorted when the zoom effect is applied. I would like to disable it for just certain elements. ...

Detecting mouse wheel movement in Flash (AS3)

I have a Flash application that have to detect the mouse wheel event (MouseEvent.MOUSE_WHEEL), I've tested on a stand alone flash player and works perfect, but when i put the swf in a web browser, the mouse wheel stop working. I've tested this in: Internet Explorer 7.0, Mozilla Firefox 3, Safari 3 and Google Chrome; and this behavior ha...

WPF - mouse wheel not working when over ScrollViewer's child controls

I was kind of expecting my ScrollViewer's child controls to hand the MouseWheel events back up the the ScrollViewer automatically, and that's not the case. I have a ScrollViewer with a ListBox in it. If I manually resize the width of the ListBox to be less than the ScrollViewer, the MouseWheel works on all of the ScrollViewer but has n...

Mousewheel Delta value always 120

Hello all, I am creating an application in WPF that uses the mousewheel to zoom in/out an image. The amount of zooming is based on the amount of mouse wheel turning. The problem is that the Delta value is always 120, as explained in MSDN. So, even if I turn the wheel 1 notch or 5 notches it will always be 120. Do you know a way around ...

Modifying the MouseWheel behaviour of a Combobox

I have a UserControl containing TextBoxes and ComboBoxes and this UserControl is contained in a Panel with AutoScroll set to True. When a textbox has the focus and I scroll with the mouse wheel, then the panel scrolls, when a combobox has the focus and I scroll with the mouse wheel then the selected item in the combobox changes. I'm su...

WPF: How do I allow scrolling with the mouse wheel in a ListView while dragging ListView items?

I have implemented drag and drop in a ListView in my WPF application. Items can be dragged and dropped inside the ListView, and also into a TreeView that is beside the ListView. Currently, I have it set up so that when you drag to the bottom of the ListView, it automatically scrolls down the list. What I'd like to know is if there's ...

GWT MouseWheelHandler not working in Firefox

I'm trying to make a TextBox that will change value when someone scrolls the mouse wheel over it. Specifically, my goal is for the number in the text box to increase when i scroll up, and decrease when i scroll down. However, I'm having trouble figuring out the MouseWheelHandler. I simplified my code to just change the value to "UP" or "...

How to use MouseWheel to scroll MDI parent window in Winforms app

I have a VB.Net Winforms app which displays an MDI parent form and allows multiple child forms to be displayed on it. If the child forms extend beyond the screen height, a vertical scrollbar is automatically displayed on the right side of the MDI Parent & I can use this scrollbar to scroll the child forms into view. But, the mousewheel...

How can I make mousewheel work in VB6 IDE?

One annoying behavior of the VB6 IDE editor, especially when switching back to it from more recent tools like VS.NET, is that it doesn't recognize the mousewheel! Maybe VB6 was brought out when most mice didn't have one, but is there a way to fix it so it does recognize the mousewheel? ...

Why isn't my app getting mouse wheel tilt messages?

In this question How to detect mouse wheel tilt an answer is posted and accepted that shows the code needed. I've implemented that code in my application's existing WndProc method (which is working for other messages I need to trap) but it's not working. I've checked and WndProc doesn't appear to be getting any messages at all let alone...

Can't fire MouseWheel event in C# Windows Forms.

First off, the mousewheel event is not listed in Visual Studio 2008's events pane which is very annoying. I found the correct format online though, and wrote this into my code: private void Form1_MouseWheel(object sender, MouseEventArgs e) { Debug.WriteLine("Foo"); } ...from which I'm getting no response when the ...

JavaScript: Mousewheel event doesn't fire while over textbox.

I need some help. I am trying to bind to the mousewheel event from JavaScript and I've successfully done that. But something doesn't work quite as I expected. When I am over an input the event doesn't fire. I have tried to bind to the input's event for the mousewheel but the same thing happens, the event doesn't fire. ...

How to do mouse panning on a custom component in Delphi 2009.

I'm using D2009. I have a component derived from TWinControl to which I'd like to add mouse panning. I see that there's a new control style, csPannable, and a new control state, csPanning. I've been looking at the vcl source to try to figure it out, but so far I'm a bit lost. Does anyone know of any documentation for this? Any sugge...

Can I suppress selected input before the application's main loop?

As part of my Visual Studio utilities add-in SamTools, I have a mouse input routine that catches Ctrl+MouseWheel and sends a pageup/pagedown command to the active text window. Visual Studio 2010 added a new "feature" that uses that gesture for zoom in/out (barf). Currently, my add-in does send the scrolling command, but Visual Studio sti...

Make tabpage not process mousewheel events (C#)

Hello. I have made a MDI (tabbed) application that uses PictureBoxes inside TabPages. The picturebox is sometimes larger then the tabpage, so scrollbars appear. It is written in C# using Windows Forms. Inside my tabpage, I capture and process mouse wheel events in the MouseWheel event (i use it to rotate some objects I draw in the pict...