Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Scrolling a memo
Fri, Nov 8 2013 8:44 AMPermanent Link

Matthew Jones

I'd like to scroll a memo to the bottom of the text. This appears to be possible in
javascript, according to
http://stackoverflow.com/questions/9170670/how-do-i-set-textarea-scroll-bar-to-botto
m-as-a-default

var textarea = document.getElementById('textarea_id');
textarea.scrollTop = textarea.scrollHeight;

My naieve modification of
   editDebugReport.scrollTop := editDebugReport.scrollHeight;
fails as the properties don't exist. Anyone know how to make this work please?

/Matthew Jones/
Thu, Nov 14 2013 2:58 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< I'd like to scroll a memo to the bottom of the text. This appears to be
possible in javascript, according to
http://stackoverflow.com/questions/9170670/how-do-i-set-textarea-scroll-bar-to-bottom-as-a-default>>You'll have to create a descendant class in order to get access to the Inputelement that you need to work with.I'll see about adding new properties for the scroll left/top - they're inthere for container controls, just not memos.Tim YoungElevate Softwarewww.elevatesoft.com
Image