PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Shawn Anderson on July 27, 2012, 01:54:58 PM

Title: scroll to the bottom of richedit
Post by: Shawn Anderson on July 27, 2012, 01:54:58 PM
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
Title: Re: scroll to the bottom of richedit
Post by: Rolf Brandt on July 27, 2012, 03:55:12 PM
You can use these wrappers of Jose:
RichEdit_SetSel
RichEdit_ScrollCaret


A small project to demonstrate the use is enclosed.

Rolf

Title: Re: scroll to the bottom of richedit
Post by: Shawn Anderson on July 27, 2012, 05:03:22 PM
again, that was just what I needed. Thanks!
Title: Re: scroll to the bottom of richedit
Post by: Rolf Brandt on July 29, 2012, 04:12:44 AM
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 (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