Solved

Scrollbar in Memo

Posted on 1998-10-31
12
333 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
 
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

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

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…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

760 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