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");
...
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, 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?
...
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, 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.
...
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, 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, 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...
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...
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!
...
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...
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 in Java?
...
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.
...
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 ...
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!
...
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...
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 ...
Hi,
I would like to know if there is any equivalent to the jquery mousemove function in prototype.
Thanks !
...
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...