Solved

Scroll DBmemo-field.

Posted on 2000-03-16
6
490 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
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!

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…

749 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