mouseevent

Catching mouseDown events of subviews. (Cocoa osx)

I have a series of nested views and I need to catch the mouseDown event ant do the same thing when any of these views are selected. Is there a way to tell a superview to handle events for its subviews? Is the best way to handle this to put a transparent view on top of all my other views and have this view handle the events? ...

java mouseadapter source not found

I have an array of JPanels and I'm trying to add a mouseadapter to each one so it will be possible to identify which one was clicked and then change its background colour. Everything seems to work fine except when I run it from eclipse when a page will appear that says EventDispatchThread.run() line: not available, Source not found, and ...

WH_MOUSE_LL Hook doesn't get called for injected events (mouse_event, SendInput)

My code uses a WH_MOUSE_LL hook to initially suppress all mouse input, unless the dwExtraInfo property is set to a certain value. The program is also registered for raw input for mouse devices, so that I can identify which device is responsible for the input. When I get a WM_INPUT message and determine the source, depending on the devi...

MouseEvent problem AWT Java

I'm simply trying to I’m simply trying to draw a circle in the same location as mouse click, but I can’t get it to work. Here is the code: import java.awt.*; import java.awt.event.*; import javax.swing.*; public class LineApp { public static void main ( String args[]) { MainWindow mainWdw = new MainWindow(); } } c...

C# and Locations on Forms

I'm trying to have a contextmenustrip object show up on the coordinates that a right click occurs on a particular form object. I hooked into the forms CellMouseClick event and I can receive X,Y values for the event, but they seem to be relative to that particular control. For example, if I use contextmenu.Show(e.X, e.Y), it will show i...

MOUSE_OVER Event Attached to Video Object

Hi there, I'm trying to create a video player in AS3 that displays the player controls when the user hovers over the video, however I'm having a hard time getting the MOUSE_OVER event to fire. I've made sure that the video's index is at the top, so that's not the issue. Is there something I'm missing? Is there any reason why this event ...

as3 mouseEnabled still a problem for me

A couple years in now, there's still something about mouseEnabled I'm not getting. I have a Sprite (for example here "Sky", that contains many objects, one of them is a Cloud, which I do not want to receive Mouse Events. I overlay this Sky on some other display objects. I want the cloud to be visible, but not to block mouse events. If yo...

Qt: Detect Double-Click with Modkey (Shift, CTRL, etc.)

How can I detect whether a double click on a QWidget (QStatusBar, in my case) occured while a modifier key was held down? I can overload void QWidget::mouseDoubleClickEvent ( QMouseEvent * event ) to get the double click, but how can I sure whether the widget receives the key events when it might not have the focus? ...

Windows Tablet Event - disable Hold Through gesture

Hi All, I've been trying to implement a long-press feature on a Tablet PC (Windows 7). The problem is I don't get the MouseDown event when touching the tablet (touch and wait). I do get a MouseDown event only after I move my finger (dragging). And when I pick it up after a while, only then do I get both down and up events at the same ti...

Can you auto hide frames/dialogs using wxPython?

I would like to create an application that has 3-4 frames (or windows) where each frame is attached/positioned to a side of the screen (like a task bar). When a frame is inactive I would like it to auto hide (just like the Windows task bar does; or the dock in OSX). When I move my mouse pointer to the position on the edge of the screen w...

Silverlight mouse left button down issue

Hi, In a Silverlight 3 project I am using mouse left button down event on a border control but found out that the event is raised even when I click the button slightly outside the border like 5-10 pixels. Has anyone faced this issue before? Thanks in anticipation! Following is the XAML in which we are capturing the event of brdSelect...

Why is the TreeViewItem's MouseDoubleClick event being raised multiple times per double click ?

XAML <TreeView Name="GroupView" ItemsSource="{Binding Documents}"> <TreeView.ItemContainerStyle> <Style TargetType="{x:Type TreeViewItem}"> <EventSetter Event="MouseDoubleClick" Handler="OnTreeNodeDoubleClick"/> </Style> </TreeView.ItemContainerStyle> ...

Execute function while mouse is at certain position

I'm trying to do something like this: var mouseY = //mouse y-position relative tot some element while (mouseY > 0 && mouseY < 200){ //scroll element -5px } I want to scroll a certain element up as long as the mouse is within a certain area of an element. Getting the mouse position and scrolling is not the problem (using scrollTo...

mouse event weirdness

Here is the greasemonkey script I'm working on (source below): http://userscripts.org/scripts/show/69722 You can test it out on this page: http://forums.whirlpool.net.au/forum/35 Hover over a thread title and a div appears with a preview. The weird thing is, when you move your mouse around on the div, the 'mouseout' event is getting f...

Help with Cocoa: Objects as views?

Hi again, in my app I want to have a light table to sort photos. Basically it's just a huge view with lots of photos in it and you can drag the photos around. Photos can overlap, they don't fall into a grid like in iPhoto. So every photo needs to respond to mouse events. Do I make every photo into its own view? Or are views too expens...

JQuery Tabs UI - Menu rotation - OnMouseOver and OnMouseOut

Hi, I am currently working with a tab menu which cycles through automatically. Once I mouseover one of the tabs the "rotation" should stop on the selected tab and when I mouseout it should continue rotating from the selected tab item. $("#featured > ul").tabs({ event: 'mouseover', fx: { opaci...

How to disable the automatic middle-click mouse events in X (Xlib)?

I am currently implementing a program in X11 using C. I got the program to handle right- and left-click events, however middle-clicking poses a problem. It seems my window manager (Gnome on Ubuntu 9.10) thinks it's better if, instead of having a single middle-click, I should have a series of other clicks instead. I assume it's got someth...

How can I listen for a mouse event in Python on Mac?

I need to listen for global mouse events(not bound to an app) on my Mac in an app written in Python. I'm using PyObjC, but I can't figure out how to do it. Plain ObjC examples or other Python techniques also appreciated. My code so far: from Quartz import * def MyFunction(proxy, type, event): print event CGEventTapCreate(kCGHIDEv...

Simulate mouse on Mac

Hello every one ! I have a virtual trackpad on my iPhone and to move my mouse I'm using : CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, CGPointMake(((float)aD.msg)+location.x, ((float)aD.msg2)+location.y)); It's working well but this not a real mouse because when I put my mouse on my hidden dock, this one doesn't display it self....

jQuery is mousedown on mouseover

I have a table where i want to change cell background on mouse over and mouse button down, my current solution doesn't work as I want it to : function ChangeColor(sender) { sender.style.backgroundColor = 'yellow'; } var clicking = false; $(document).mouseup(function() { clicking = false; }); $(document).ready(function() {...