Solved

Scroll DBmemo-field.

Posted on 2000-03-16
6
494 Views
Last Modified: 2010-04-04
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 ?
0
Comment
Question by:RichardBorst
[X]
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
  • 3
  • 2
6 Comments
 
LVL 9

Accepted Solution

by:
ITugay earned 75 total points
ID: 2623085

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

Best regards,
Igor.
0
 
LVL 10

Expert Comment

by:Lischke
ID: 2623115
Without changing anything in the memo:

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


Ciao, Mike
0
 
LVL 9

Expert Comment

by:ITugay
ID: 2623138
to Lischke.
Is it moved cursor to the end of the text?

Cheers,
Igor.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:Lischke
ID: 2623187
No, just scrolling. Cursor stays where it is.

Ciao, Mike
0
 
LVL 9

Expert Comment

by:ITugay
ID: 2623225
to Lischke.
OK, thanx.

Cheers,
Igor.
0
 

Author Comment

by:RichardBorst
ID: 2623891
It is exactly what I mean.
I tried both solutions. but the couldn't get the solution from lischke  working.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

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