Solved

Find the position of the cursor in an EditorPane

Posted on 2003-10-21
5
239 Views
Last Modified: 2010-04-17
is there a way to get the current position of the cursor in the (html) document being displayed by an EditorPane ???

thanks,

dn
0
Comment
Question by:duydien
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
bhagyesht earned 250 total points
ID: 9597444
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--

function document_onmousemove()
{
window.text1.value="X="+window.event.clientX+" Y="+window.event.clientY


}

//-->
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=onmousemove>
<!--
 document_onmousemove()
//-->
</SCRIPT>
</HEAD>
<INPUT type="text" id=text1 name=text1>
<BODY>

<P>&nbsp;</P>

</BODY>
</HTML>
0
 
LVL 9

Expert Comment

by:bhagyesht
ID: 10321809
Accept answer by bhagyesht
Bhagyesh Trivedi
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question