?
Solved

Scrollbar in Memo

Posted on 1998-10-31
12
Medium Priority
?
341 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 400 total points
ID: 1345136
OK, I have posted an answer.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

765 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