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?
 
ITugayConnect With a Mentor Commented:

   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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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.