Solved

Find the position of the cursor in an EditorPane

Posted on 2003-10-21
5
235 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using YubiKey with REST API application 2 108
Fibonacci challenge 11 109
what is the main difference between git clone and fetch ann pull and push commands 2 72
Not needed 13 94
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
A short article about problems I had with the new location API and permissions in Marshmallow
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now