Solved

Scroll DBmemo-field.

Posted on 2000-03-16
6
483 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
  • 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now