No need for the scrollbox. You can use GetScrollInfo and SetScrollInfo from
the Windows-unit and pass the richedit's handle as the first parameter.
Like:
var Info: TScrollInfo;
GetScrollInfo (RichEdit1.Handle, SB_HORZ, Info)// get info from horizontal
scrollbar
Kees Willem
Define "control" in this context. YOu can get the first line on display
(a proxy for the scrollbar position) by sending a
EM_GETFIRSTVISIBLELINE to the control, you can get it to scroll by
a certain number of lines by sending it EM_LINESCROLL messages.
Peter Below (TeamB) 10011...@compuserve.com)
No e-mail responses, please, unless explicitly requested!
Note: I'm unable to visit the newsgroups every day at the moment,
so be patient if you don't get a reply immediately.