RichEdit search prob...

Posted on 2003-03-04
Medium Priority
Last Modified: 2013-11-22
Hi there!!!

I have a RichEdit text field which contains more lines than it can be displayed without scrolling down. My problem is when i search for text in the RichEdit lines, and find what i'm search for, I can't see the founded(focused) text without scrolling down to it. How do i get the RichEdit to automaticaly scroll down to my found and "focused" text?

Thanks in advance for any help.

Question by:JohnWho
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

Motaz earned 200 total points
ID: 8066674
I used this code in TRichEdit component, I'm not sure if it works with TDBRichEdit component.

After finding your word make it selected text, example:

RichEdit1.SelStart:= FindIndex; // Found position
RichEdit1.SelLength:= Length(Edit1.Text); // Word to search

Make sure that HideSelection is False


Author Comment

ID: 8069310
Thanks alot Motaz, you solved my prob. My HideSelection was set to true, bump.


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month11 days, 7 hours left to enroll

752 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