Solved

Getting Cursor Pos in Memo

Posted on 1998-10-18
1
643 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 10 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

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
Delphi - replicating a form 8 65
Connection between libmysql.dll and MySQL Versions 7 87
creating threads in delphi 1 84
Convert MS Word document to a PDF file 9 64
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

867 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

22 Experts available now in Live!

Get 1:1 Help Now