Solved

Getting Cursor Pos in Memo

Posted on 1998-10-18
1
642 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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 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

10 Experts available now in Live!

Get 1:1 Help Now