mouse

javascript mouse cursor change on page load in firefox browser 3.5

Hi in case of full page submit a trasparent div id coming and changing the cursor to 'wait' . Now when the page is getting submitted and new page is coming up cursor still remains to 'wait' not changing to default until mouse is moved in Firefox Here is simple html click on show button div is coming when user move mouse over the div cur...

How to Detect Forward and Back Mouse Button Events in Delphi?

If a mouse has other buttons in addition to the standard left/right/middle (e.g. forward/back), how can we detect those button clicks in Delphi? An example of how this is used is the Internet Explorer, where the forward/back button on the side of a Logitech or MS mouse cycles forward and back between any loaded web pages. This seems to ...

How to add a mouse listener to a JTree so that I can change the cursor (to a hand cursor) when hovering over a node?

As the question states, I'd like to set a mouse listener to my JTree so that I can change the cursor to a HAND_CURSOR when the user places their mouse over a node. I already have a MouseAdapter registered on my JTree to handle click events, but I can't seem to get a MouseMoved or MouseEntered/MouseExited to work with what I'm trying to ...

ScintillaNet - Working out what line a user clicks on

I'm using the ScintillaNet text box control to display some search results and I want to be able to detect when the user double clicks / right clicks on a line in the results so that I can work out which hit they are clicking on. Does anyone have any ideas on the best way of doing this? I can think of a few ways but they all seem a bit...

Problem with virtual mouse click

Hi. I have a program that simulates mouse click. Code is something like this: [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern void mouse_event(long dwFlags, long dx, long dy, long cButtons, long dwExtraInfo); private const int MOUSEEVENTF_LEFTDOWN =...

WinForms cursor hidden only on one Form

I have a C# application with 2 simultaneous visible forms, and I need to hide mouse cursor when it is over only on one of them. If I use Cursor.Hide() it applies the change for both of them. ...

Mouse position in xaml - wpf

Hi all Is it possible to specify the position of the mouse as the value of the Parameter property of a Command in XAML. Something like the following: <UserControl.ContextMenu> <ContextMenu> <MenuItem Header="Create Link" Command="{Binding CreateLink}" CommandParameter="{Bi...

How to write code for mouse event?

I have a grid where i can select multiple item to another grid.Now my ques is if i select multiple item and when i double click it,so only the item on which the mouse focus should get selected. ...

Capture (trap) the mouse cursor in a window in Java

Hi all, I am looking for a way to capture or trap the mouse in a window after it has entered that window much like a mouse is trapped in a virtual machine window until a user presses CTRL+ALT+DEL or release the mouse in some other manner. How do I make this happen in Java? Going full screen is not an option. EDIT: Here is some SSCCE ...

Resizing an image using mouse dragging (C#)

Hi all. I'm having some trouble resizing an image just by dragging the mouse. I found an average resize method and now am trying to modify it to use the mouse instead of given values. The way I'm doing it makes sense to me but maybe you guys can give me some better ideas. I'm basically using the distance between the current location of ...

Determine if mouse is still in javascript/jQuery?

I'd like to be able to use jQuery to trigger an event if the mouse has been stationary for a certain amount of time. Any ideas? I'm not even sure where to start! ...

wxOSX/Carbon: wxGLCanvas mouse offset in non-floating window classes

Hi All, I mainly program plugins using wxWidgets within a Carbon bundle which is loaded at runtime. The host-applications where my plugins are running in provide a native window handle (WindowRef), which I can use to add my custom, wxWidgets-based GUI-classes. To use the native window handle with wxWidgets classes I had to write a wxTo...

Threads: Just what is it that makes them confusing? Two Runnables with Mouse Listener

I have a JWindow and a JFrame both I have made runnable and both implement a mouse listener. I have alot of testing to do for a project of mine and to simplify it I wish to be able to automate most of it, so I have starting my own mouse recorder and replayer (uses Java Robot Class). Kinda like a simplified AutoHotKey or AutoIt thing... ...

Getting javascript mouse position relative to website prefferably without jQuery

I've found this snippet on Ajaxian, but I can't seem to use the cursor.y (or cursor.x) as a variable and when the function is called as such it does not seem to work. Is there a syntax problem or something else? function getPosition(e) { e = e || window.event; var cursor = {x:0, y:0}; if (e.pageX || e.pageY) { cursor.x...

How to do a mouse rollover action on a Label in Xcode?

How do I link up a mouse rollover action on a label, or any invisible object I can place over the label. I can't find it the label's action list Using xcode 3.2 and Interface builder ...

Make mouse with busy icon (C#)

I have an application that takes a couple of seconds to run. Is it possible to make the mouse with the busy icon while the app is processing? ...

Flash AS3 blur or liquify part of an image with mouse

Hi, I am very beginner in flash. I want to load an image, show a cursor over the image and on mousedown I want to blur that actual part of the image. (e.g you can blur your face on the image and then save the new image). I can delete parts of the image with white line, but I would like to blur it instead // LIVE JPEG ENCODER 0.3 /...

Eye-tracking for code editing

Is there a decent eye tracking package to replace the mouse for code editing? I want to free up the mouse, but keep using my keyboard for editing code. Having done some research on it, I concluded that proper eye tracking hardware is expensive. Using a webcam or high resolution video camera seems to be the most viable option. Unfortun...

Scaling an image using the mouse in a WinForms application?

I'm trying to use the position of the mouse to calculate the scaling factor for scaling an image. Basically, the further you get away from the center of the image, the bigger it gets; and the closer to the center you get, the smaller it gets. I have some code so far but it's acting really strange and I have absolutely no more ideas. Firs...

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