scroll to the bottom of richedit

Started by Shawn Anderson, July 27, 2012, 01:54:58 PM

Previous topic - Next topic

Shawn Anderson

I have a program running that runs a loop and while looping outputs text into a RichEdit control.
I would like to have it scroll to the bottom of the control after I add the text, so that as the user watches, they can read the new updates.
How can I do that?
thanks

Rolf Brandt

You can use these wrappers of Jose:
RichEdit_SetSel
RichEdit_ScrollCaret


A small project to demonstrate the use is enclosed.

Rolf

Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Shawn Anderson

again, that was just what I needed. Thanks!

Rolf Brandt

Just as a hint - if you need functions that sometimes are not covered directly in FireFly then Josè Roca's API wrappers are extremely helpful. There is hardly anything that is not covered. If you ever heard of "Dan Appleman's Programmer's Guide to the WIN32 API", well, here is the equivalent work for PowerBasic.

Josè has them for download here:
http://www.jose.it-berater.org/smfforum/index.php?topic=4518.0

Don't miss the helpfile. It is in the second post. I noticed that many downloaded the API headers but not the helpfile. Without the helpfile you are only getting half of the benefits!

Rolf
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)