mousewheel

Flex - Mouse wheel scrolling

I have a tile that has verticalScrollPolicy="on". Inside this tile are multiple panels, which are actually instances of a module that I've defined. The scrolling on the tile works fine when my cursor is over one of these panels, but it doesn't scroll if my cursor is just on the tile, not over one of the panels. There is space between ...

How to direct the mouse wheel input to control under cursor.

I use a number of scrolling controls: TTreeViews, TListViews, DevExpress grids and treelists, etc. When the mouse wheel is spun, the control with focus receives the input no matter what control the mouse cursor is over. How do you direct the mouse wheel input to whatever control the mouse cursor is over? The Delphi IDE works very nicely...

how to make a jQuery selector work throughout the browser window

Hi i'm using the jQuery mousewheel extension and it uses the following bind $('html').bind('mousewheel', function(event, delta) { window.scrollBy(-120 * delta, 0); return false; }); The delta is determined by the mouse wheel movement and the page scrolls horizontally. All is fine except when you move the cursor on an empty s...

jQuery mouse wheel horizontally

Hi! Is there any way to detect if the mouse wheel is scrolling sideways in Javascript? I am now using the excellent jquery.mousewheel.3.0.2 plugin, but I couldn't find any relevant parameters on the event. Please help! ...

controlling mousewheel events flash

Hi, I'm working on a menu system in flash. If the mousewheel scrolls up each menu item shift up and visa versa for mouse wheel scrolling down. The problem I have is there seems to be multiple "steps" going on. In my mouse wheel handler I trace out the text "wheel" to test. If I mouse the mouse wheel just once "wheel" gets traced out t...

Standard and reliable mouse-reporting with GLUT

Hello! I'm trying to use GLUT (freeglut) in my OpenGL application, and I need to register some callbacks for mouse wheel events. I managed to dig out a fairly undocumented function: api documentation But the man page and the API entry for this function both state the same thing: Note: Due to lack of information about the mouse, i...

MouseWheel, determining up and down scrolling events

Is there any way to determine if the mouse scrolls up or down using the Mousewheel handler on a sub? eg Private Sub PictureBox1_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseWheel if mousewheel.scrollup then UserZoom = UserZoom + 0.05 Me.Refresh() end if End Sub I w...

C# i am trying to make a zoom effect

Pls help! i am trying to make a zoom effect on a picturebox by mouse wheel.Everything is ok except that when i use mouse middle button to zoom in or zoom out it is ok but it does not zoom in or zoom out the point which the mouse cursor on.when i zoom in the point what i want it always slide .Pls help me to add a snippet code to make i...

What is the best method for implementing mouse wheel activity in Delphi VCL forms?

As a long time user of Delphi 7, I've rolled my own mouse wheel handling in a few controls but lately I've noticed that some recent applications only need the mouse cursor to be placed over a control (e.g. a list box or tree view) for the mouse wheel activity to cause that control to scroll. This feels nice (as opposed to having to click...

How do I make a form scroll down with mouse wheel instead of changing records in MS Access?

I have a longish form that scrolls vertically and also allows editing records. When I scroll with the mouse wheel, the form changes records instead of scrolling up and down to see more of the form. Is there any way to change this behavior? ...

Disable browser scrolling with the middle mouse scroll button

I have a flash element on my page that you interact with by using the middle mouse scroll wheel. The page is long. So when scrolling with the mouse wheel it interacts with the Flash element AND scrolls the browser window. Is there a way to disable browser scrolling while the Flash element is active? ...

mouse wheel operates on scrollbar

If a SWF file or even a component within it has scrollbars, wouldn't it make sense that if the user is hovered over that area (it's in focus) and uses the mouse wheel, that this movement would automatically translate to the scrollbar moving. Any ideas how this is done, the events or classes used for this? I'm open to outside components ...

Silverlight 4, Mouse Wheel Events and Windowless Mode

I have a Silverlight 4 application that benefits greatly from having native mouse wheel support for a number of controls. The page that hosts the application has a HTML driven drop-down menu that would normally overlay the Silverlight control. In IE, I have to enable windowless mode to allow the overlay menu to work correctly (Firefox 3...

ContextMenuStrip and mouse wheel

I have a ContextMenuStrip with many items. How to handle ouse wheel to scroll throught items? I search the net but nothing find usefull. Or how to get first/last displayed/visible item from contextmenu? ...

Handling wm_mousewheel message in WTL

I am trying to handle wm_mousewheel for my application. Code: BEGIN_MSG_MAP(DxWindow) MESSAGE_HANDLER(WM_MOUSEWHEEL, KeyHandler) END_MSG_MAP() . . . LRESULT DxWindow::KeyHandler( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled ) { if(uMsg==wm_mousewheel) { //Perform task. } return 0; } But...

MouseWheel: Scrolling vs. Zooming

I've got a Silverlight 4 custom control that basically is several Canvas elements wrapped inside a ScrollViewer. The user can set a property to determine whether to scroll or zoom when using their mouses wheel. In the custom control's MouseWheel event, I check to see if they want to scroll or zoom. If zooming, I determine the delta an...

MouseWheel Event Fire

I have a problem on calling my private method on MouseWheel event. In fact my mouse wheel event gets fired properly when i only increment a variable or display something in Title bar etc. But when i want to call a private method, that method gets called only one time which is not the requirement i want to call that method depending on th...

How can I differentiate a manual scroll (via mousewheel/scrollbar) from a Javascript/jQuery scroll?

UPDATE: Here is a jsbin example demonstrating the problem. UPDATE 2: And here is the fixed version thanks to fudgey. Basically, I have the following javascript which scrolls the window to an anchor on the page: // get anchors with href's that start with "#" $("a[href^=#]").live("click", function(){ var target = $($(this).att...

jquery horizontal scroll with mousewheel

I currently have a site that is a sidescroller (http://www.studioimbrue.com) and I'm trying to bind a mousewheel to scroll sideways. Currently I'm using the one found at thehorizontalway.com (called thw.js) but it doesn't seem to work in all browsers (Chrome). I'm trying to get this one to work: http://brandonaaron.net/code/mousewheel/d...

How to use my trackpad for horizontal mousewheel scrolling in a Java AWT ScrollPane

Like many modern mice and trackpads, my laptop supports vertical and horizontal scrolling. It's an addictive feature once you get used to it. I simply want my Java apps to support horizontal scrolling via the trackpad/mousewheel, but everywhere I search it seems that this is not possible in Java. I really want someone to tell me that ...