I am having a frame-based webpage with 3 frames. A topliner, a navigation on the left side and a content frame on the bottom right side.
Now, I want to show up a popup-menu when the user right-clicks on the content-frame. Because a div-container can not go out of the frame, my idea was, placing the whole frame-page into a new iframe. In...
Hi my teachers!.
I want the best way to get mouse position for Form.
I,m now set the values of mouse position in variables to get them in another methods "Like Form1_Click".
Is there any better way to do that??.
Thank you very much.
...
I'm currently trying to solve a problem where I need to find the position in a piece of text in a JEditorPane based on where the mouse was clicked.
Basically, when the user right-clicks over a word I need to find out what the word is. To do this I need to find out which position in the text the user has clicked on. I know I can easily ...
(I know there is a topic in this but I can't find it)
How to I get the mouse position? I want to screen position.
I start my program I want to set to the current mouse position(I can't even get the mouse position)
Location.X = ??
Location.Y = ??
(I am making a note application)
Edit: This must happen before the form is created.
...
Hi there,
In a browser, I'm trying to determine if the point representing the mouse position is in what I call an "outer area" . For example, in the image attached, the outer area is the one with a blue background.
In the code and image W represents the width of the viewport of the browser, while H represents the height, and x,y for ...
Hi.
I am using Lesters DragAndDropManager
to get the drag and drop function in my application and i really like the way it's implemented, but I have one small problem and that is that I want to show the mouse cordination during the drag in my statusbar, so how do I send the mouseposition from the DropManager to my xaml code.
I have tr...
Hi.
I have a panel and have added a PictureBox to it.
I have added mouse_click listeners to both the panel and the picturebox.
When they are clicked i create a messagebox which tells me the mouse position.
Problem:
When i click the panel, i get the mouse position i want.
When i click the pictureBox, i get the current position in t...
Is there any way to get mouse position relative to it's parent element?
Let's say I have a structure:
<div id="parent">
<span class="dot"></span>
</div>
When I bring my mouse over span element I need to get its position relative to its parent element (<div id="parent">). PageX/ClientX give me position relative to page/client area...
Is there any way in javascript to check if web page has been vertically scrolled?
specially for Internet Explorer? I need to get the mouse position in IE but using
jQuery event e.pageY it gives correct value when page is not scrolled but when page is scrolled down then it gives wrong position.
...
I need to get the mouse position relative to the tkinter window.
...
I want to get mouse x and y co-ordinates through JavaScript. I have tried pageX, pageY, clientX, clientY, but nothing is displayed. I have tested this on both IE and Firefox.
Is there something I'm doing wrong in the following event?
var x=0;
var y=0;
function mouseDown(){
alert("This is displayed");
evt=event||window.event;
...