Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Getting Cursor Pos in Memo

Posted on 1998-10-18
1
Medium Priority
?
653 Views
Last Modified: 2012-06-27
Hello
After I filled the Memo with some Text, how to set the Cursor on the first Line and then how to get the current Line where the cursor actually is ?
0
Comment
Question by:omsec
1 Comment
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 30 total points
ID: 1343293
Use the SelStart and SelLength properties for set the cursor at a specific position. To determine which line the cursor is on you have to walk through the text property, counting new lines until to reach the position specified by SelStart (which is the position of the cursor).

Cheers,

Raymond.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

877 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