Board index » delphi » Scroll A RichEdit control in code

Scroll A RichEdit control in code

Can any body please tell me how to
scroll a richedit memo box in code

I am adding lines to the Richedit box
but it doesn't scroll so that the user
can see what he have inserted .

kind Regards
 Coenie

 

Re:Scroll A RichEdit control in code


Quote
> Can any body please tell me how to
> scroll a richedit memo box in code

> I am adding lines to the Richedit box
> but it doesn't scroll so that the user
> can see what he have inserted .

 Coenie,

 something like this:

 with richedit1 do begin
   selstart := gettextlen;
   perform( EM_SCROLLCARET, 0, 0 );
 end;

Peter Below (TeamB)  100113.1...@compuserve.com)
No e-mail responses, please, unless explicitely requested!

Re:Scroll A RichEdit control in code


Coenie:

  with RichEdit1 do begin
    SelStart := Lenght(Text);
    Perform(EM_SCROLLCARET, 0, 0);
    SetFocus;
  end;

--
Regards
Ralph (TeamB)
Herrsching, Germany
(TeamB cannot respond to questions received via email)

Quote
coenie wrote in message <6vho8i$pv...@forums.borland.com>...

|Can any body please tell me how to
|scroll a richedit memo box in code
|
|I am adding lines to the Richedit box
|but it doesn't scroll so that the user
|can see what he have inserted .

Other Threads