Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memo ScrollBars

Status
Not open for further replies.

snafusnafu

Programmer
Oct 5, 2004
3
CZ
Hi
I'll be grateful if someone told me, how to control scrollbars in TMemo control. When I am adding some text, it doesn't scroll automatically. Is there any solution for it?
Thanks beforehand Paul
 
It should be done automatically.
is it fail in both directions? (up-down & left-right)

--- LastCyborg ---
 
Hi LastCyborg
Thanks for your answer. It fails in both directins. Maybe it's caused by the function Update() which I call after every access to Memo control. Is there another way of forcing Memo to update and scroll properly?
Thanks Paul
 
Stupid question: did you activate the scroll bars in the TMemo.

James P. Cottingham
-----------------------------------------
To determine how long it will take to write and debug a program, take your best estimate, multiply that by two, add one, and convert to the next higher units.
 
it might be by at least 2 reasons.
one:
it's what 2ffat said, although as I said it should be done automatically.

(just set the ScrollBars property to ssBoth)

and the second one:
Verify the WordWrap property

--- LastCyborg ---
 
ScrollBars are activated. When I add some text the thumb gets smaller but it's stuck at the top of the scrollbar. I can move it by mouse too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top