Scroll DBmemo-field.

In my application (delphi 3) I use a DBmemo-field. At some records the text in the memo-filed in more than can be seen in one memo-box.

I am looking for a way to automaticly go to the latest line in the memofield.

In other words when I go to a new record I want that the program shows the lower content of the memofield.

Is there a way to move the cursor to that position ?
RichardBorstAsked:
Who is Participating?
 
ITugayCommented:

   DBmemo.SelStart:=length(DBmemo.Lines.Text);
   DBmemo.SelLength:=0;

Best regards,
Igor.
0
 
LischkeCommented:
Without changing anything in the memo:

  SendMessage(DBMemo1.Handle, WM_VSCROLL, MakeWParam(SB_THUMBPOSITION, $FFFF), 0);


Ciao, Mike
0
 
ITugayCommented:
to Lischke.
Is it moved cursor to the end of the text?

Cheers,
Igor.
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
LischkeCommented:
No, just scrolling. Cursor stays where it is.

Ciao, Mike
0
 
ITugayCommented:
to Lischke.
OK, thanx.

Cheers,
Igor.
0
 
RichardBorstAuthor Commented:
It is exactly what I mean.
I tried both solutions. but the couldn't get the solution from lischke  working.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.