Solved

Scrollbar in Memo

Posted on 1998-10-31
12
336 Views
Last Modified: 2010-04-06
In my Chat-Program I want that my Memo-box always shows the latest message. How can I scroll down my Memo? Please help me!
0
Comment
Question by:Shellman
  • 4
  • 3
  • 3
  • +1
12 Comments
 
LVL 2

Expert Comment

by:rene100
ID: 1345125
Hi

Just do this:

SendMessage(MemoName.Hadle,EM_LINESCROLL,NX,NY);

Nx is the amount of chars you wants to scroll horiztontally,
Ny the amount of lines verticaly

reagrds
rene
0
 
LVL 2

Expert Comment

by:rene100
ID: 1345126
sorry, should be MemoName.Handle
0
 

Author Comment

by:Shellman
ID: 1345127
Sorry, but this doesn't work! I've got Delphi 2.0, maybe this is the Problem.
Undefined: EM_LINESCROLL
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 2

Expert Comment

by:rene100
ID: 1345128
ok, try to define Em_Linescroll with this:

const
EM_LINESCROLL  = $00B6;
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1345129
Hi Shellman,

it should normally work. Which version of Delphi are you using?

try :

sendmessage(memo1.Handle, WM_VSCroll, SB_LINEDOWN,0); to scroll one line down

Regards, Zif.
0
 
LVL 5

Expert Comment

by:ronit051397
ID: 1345130
uses messages;
.
const
      EM_LINESCROLL  = $00B6;
.
memo1.perform(EM_LINESCROLL,2,memo1.Lines.Count);
0
 

Author Comment

by:Shellman
ID: 1345131
These two ways work:
memo1.perform(EM_LINESCROLL,2,memo1.Lines.Count);
sendmessage(memo1.Handle, WM_VSCroll, SB_LINEDOWN,0);
Thank you!
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1345132
then, who gets the points? Maybe split them?
0
 

Author Comment

by:Shellman
ID: 1345133
I am new. How can I do this? I am new.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1345134
Shellman,

You have two ways to do it :

1. Give the points to only one person :
 just give a comment here, who earns the points and this person can then answer the q'n after which you can grade it.
2. split the points.

To split points :
you can ask linda gardner to do it (costumer service of E-E).

But you can do it also on yuor own :

1. because the q'n is already answered once, you can't delete this one anymore. So, give a comment that this q'n is already solved and then others know that they don't have to find for a solution anymore.
--> After a while (believe 30 days without action at thread) the points will return to you, because the q'n was never solved.
2. you open two new q'ns with the names to whom you want to give the points (you can decide how many points you want to give to each of these persons).
e.g. to Shellman, to MyGirl
3. The addressed persons will answer the q'n by giving a dummy one or the one proposed here already (better)
4. Then you can grade the answeres

Regards, Zif.
0
 

Author Comment

by:Shellman
ID: 1345135
Please don't answer any more. Ronit should get the points.
0
 
LVL 5

Accepted Solution

by:
ronit051397 earned 100 total points
ID: 1345136
OK, I have posted an answer.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

813 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

10 Experts available now in Live!

Get 1:1 Help Now