Solved

Scrollbar in Memo

Posted on 1998-10-31
12
340 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
[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
  • 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
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 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

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!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

695 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