mouseevent

WPF: Opacity and the MouseEnter Event

As part of a diagram, I am drawing a few overlapping Shapes, each with Opacity=0.5, like here: <Grid> <Rectangle Fill="Blue" Opacity="0.5" MouseEnter="Rectangle_MouseEnter" /> <Rectangle Fill="Red" Opacity="0.5" /> </Grid> private void Rectangle_MouseEnter(object sender, MouseEventArgs e) { MessageBox.Show("Entered"); ...

Jquery make a mouseon / hover event for one element call / simulate a similar even for a different element?

I'm using a plugin that is obscure and doesn't have a good API and, rather than digging around and re-writing it the way I want, I want to just use it the way its built which is that it has a list within a DIV and an action occurs based on moving the mouse over a list item in this DIV.. I want to simulate this so that I can make another ...

In flex, mouseOver in TextInput Programatically using AS3?

In flex, I am able to add mouseOver ( in mx:TextInput ) event as follow: mouseOver="canvas1_mouseDownHandler(event)" It is not the property of TextInput so how can I do it programatically in ActionScript? ...

How to find out whether an affine transformed rectangle contains a certain point, in Java?

Hi, I'm trying to make an interactive GUI but I need to move a certain object whenever that rectangle is clicked + dragged. Basically I wanna know whether a rectangle, that has been affine transformed, contains a specific point (x, y). Is there a way to do this? I have tried using contains() method but it doesn't work for a rectangle th...

in flex, onMouseOut is trigerred on Child

In flex, I am using the following code: mx:HBox id="box1" mouseOver="onBox('box1')" mouseOut="outofBox('box1')" // adding label // closing HBox onBox adds an image as child of box1: var crossImage:Image = new Image(); crossImage.source = "cross.png"; crossImage.id = "cross"; box1.addChild(crossImage); and outofBox removes them. ...

propagate mouse events to obscured elements

Is there a way in JavaScript to propagate events to elements obscured by another one? Because I have an element with position: absolute that obscures elements that aren't parent elements of it, but I'd like click, mousemove and mousout events to pass through this element. The solution can be Mozilla Firefox specific, because I'll use it ...

In flex, how to pass data to handling function?

In flex, I am handling event like this, myImage.addEventListener(MouseEvent.CLICK, redoOperation); Now, I want to pass some value to redoOperation. (function redoOperation(myId:String)) How can I pass String to it? ...

In flex, how to trigger mouseevent when the focus is on TextInput?

In flex, I am using the following: mx:TextInput mouseOver="tester(event)" It works fine. My pointer goes over the textInput and it calls the function. But when I click inside the textInput to enter some text( focus is on the textInput) and then move the mouse (not taking mouse pointer outside of the boundary of textinput), the mouseov...

MouseEnter event does not always raises

Hi all! I've got a weird problem. Forgive me if I'm mixing up terms but I'm still a beginner ;) The situation: In my WPF project I've got a canvas on which I draw Ellipse. I create the Ellipse in the XAML and add a MouseEnter event to it: <Canvas Width="600" Height="480" Name="canvas1" HorizontalAlignment="Left"> <Ellip...

richfaces how to detect mouse events

Hi, sorry if the answer to this is obvious but I couldn't find it. How do I detect if the user has clicked, dragged etc. on an image (or other element)? Thanks in advance! ...

MouseListener for JPanel missing mouseClicked events

I have a JPanel that I have created a MouseListener for and I am seeing some behavior that I can't explain. Usually when I click the mouse within the JPanel, I see the following events fire: mousePressed mouseReleased mouseClicked On some occasions, I don't see the mouseClicked event fire, I only see: mousePressed mouseReleased I...

webkit webview not able to connect to motion-notify-event

Hi Experts, I want to retrieve the position of mouse pointer in webkit's webview widget. So I tried to connect it like this. gtk_signal_connect (GTK_OBJECT (gtk_widget_get_toplevel(web_view)), "motion-notify-event", (GtkSignalFunc) motion_notify_event, NULL); But the callback functions gets never called when mou...

How to record the number of mouse clicks

How to record the number of mouse clicks in Java? ...

How to detect MouseLeave on a UIElement that is a Drag source in Silverlight when Dragging?

I have a StackPanel with MouseLeave events. I have run into an issue where MouseLeave events are not occurring for this StackPanel when elements are being dragged from this stack panel to other outside elements. How can I have the MouseLeave event detected when Dragging? Thank you. ...

Javascript mouse position problem

I am getting the screen coords of my mouse click using clientX and clientY in IE. I am using these coords to plot a point on an openlayers map however, the x axis is always perfect but the y axis is always exactly 86 pixels out. At the moment I am just getting round this by doing clientY - 86 but obviously this is no good as a long term ...

Simulate a physical mouse move in Mac OS X

Hello, I'm looking for a way to simulate a mouse move event in Mac OS X 10.6. It would have to be defined in mouse units (rather than pixels — that is important!) I need this for an experiment which basically consists of drawing lines. Any ideas are welcome. Thank you! ...

Flex 4:Capturing mouse events with spark.primitive.path objects

I am trying to capture mouse events whenever the mouse does something over top of a spark.primitive.path (the 'L' shape below). Everything I have read states that I need to put the path inside of a Group object and attach mouse handlers to that. So the code would look something like this.. <s:Group left="10" right="10" top="10" bott...

Adobe Flex - MouseDown Event On Label Values

Hello everyone, I just would like to know how can I dynamically change a label's values while on mousedown. I basically have a mousedown event and I also have two labels in my application. What I would like to happen is to get the current x and y position of my mouse pointer as I move my mouse through the screen and changing the values ...

Prototype .Mousemove equivalent

Hi, I would like to know if there is any equivalent to the jquery mousemove function in prototype. Thanks ! ...

Possible? — A div overlay which is completely ignored by mouse events (so that mouse events effect only the div below)

I have a google map in an iframe and wrapped in a div. Above that div, i have another, which serves to create a recessed shadow effect. The problem is that this overlayed div will take priority of any mouse events, so it renders the interactive google map below useless. There must be a way I can make the overlayed div ignore mouse even...