Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Why doesn’t a RichEdit display the last line added?

Posted on 1999-07-27
Medium Priority
Last Modified: 2013-11-22
I want to see the last line added to a Richedit. How do I accomplish this?

When using Richedit1.Lines.Add(), it only displays the top lines, and I want to see the end of the pag.
Question by:volavy
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
  • 2
LVL 17

Accepted Solution

inthe earned 40 total points
ID: 1391392
you have to do something like this when adding the line.
procedure TForm1.Button1Click(Sender: TObject);
SendMessage(Richedit1.Handle,  { HWND of the richedit Control }
             WM_VSCROLL,    { Windows Message }
             SB_LINEDOWN,   { Scroll Command }
             0)             { Not Used }  

there is also SB_LINEUP,SB_PAGEUP,SB_PAGEDOWN ETC..Look in the win32 help file for more.
Regards Barry

Author Comment

ID: 1391393
Tanks it works, but isn’t there another way to do this e.g. change a property value? Why doesn’t Richedit behave like a Memo?
LVL 17

Expert Comment

ID: 1391394
sorry there is no other propertys to change..
maybe richedit98 supports it im not sure but it is just richedit normal behavoior.
a memo is just like a multiline edit control.
there is also a richedit1.scrollby(x,y) method which could be used..

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

705 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